Subject: RE: PHP problem
From: Mike Barsalou (mbarsalou@aidea.org)
Date: Thu Oct 10 2002 - 14:25:51 AKDT
Is there a way to find out what each of those variables are currently typed
as? That might shed some light as well.
Thanks for the help.
Mike
-----Original Message-----
From: Leif Sawyer [mailto:lsawyer@gci.com]
Sent: Thursday, October 10, 2002 1:57 PM
To: Mike Barsalou; 'aklug@aklug.org'
Subject: RE: PHP problem
Mike Barsalou writes:
> if ($output == $value)
> [...]
>
> Produces this:
>
> Output:217: Value:217:
> The values are not equal
Make sure that you're comparing integer to integer, and not
string to integer..
if ( (string)$output == (string)$value )
or
if ( (int)$output == (int)$value )
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
This archive was generated by hypermail 2a23 : Thu Oct 10 2002 - 14:27:38 AKDT