RE: PHP problem


Subject: RE: PHP problem
From: Leif Sawyer (lsawyer@gci.com)
Date: Thu Oct 10 2002 - 13:57:03 AKDT


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 - 13:57:06 AKDT