RE: [PHP] Odd Code Error.
| From: | daniel at electroteque dot org | Date: | Tue, 20 Jan 2004 23:09:14 +0000 |
| Subject: | RE: [PHP] Odd Code Error. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175226@lists.php.net to get a copy of this message | ||
i've never had a problem doing if ($var=="test") ??
> I've come across this recently too. I think what's happening is that
> PHP is converting "NFH" to an integer, which would be zero in this
> case. Thus zero == zero is true...
>
> Try doing type checking too:
> if ($EA === "NFH")
>
> Martin
>