Re: wierd if statments
| From: | Julia A . Case | Date: | Thu, 26 Oct 2000 22:16:24 +0000 |
| Subject: | Re: wierd if statments | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22219@lists.php.net to get a copy of this message | ||
An interesting aside, if you change $tmp1 to $tmp1=1 then it returns false.
Julie
Quoting Chris Lee (lee@mediawaveonline.com):
> <?
> $tmp1 = 0;
> $tmp2 = "all";
>
> if ($tmp1 == $tmp2)
> echo "TRUE<br>\n";
> else
> echo "FLASE<br>\n";
> ?>
>
> Whats going on here, this returns TRUE !!!
>
> Chris Lee
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
[ Julia Anne Case ] [ Ships are safe inside the harbor, ]
[Programmer at large] [ but is that what ships are really for. ]
[ Admining Linux ] [ To thine own self be true. ]
[ Windows/WindowsNT ] [ Fair is where you take your cows to be judged. ]