Re: Odd Code Error.
| From: | daniel at electroteque dot org | Date: | Tue, 20 Jan 2004 23:13:42 +0000 |
| Subject: | Re: Odd Code Error. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175231@lists.php.net to get a copy of this message | ||
> Interesting. I wouldn't have expected that. However, that is how it
> should work. Check out table K-2 on this page:
>
> http://us4.php.net/manual/en/types.comparisons.php
>
> '==' is a loose comparison. You can use '===' instead which will give
> you the results you are looking for.
>
> if ($EA === "NFH")
>
Hmm after all this time, are you saying its best to use === instead of ==
in any application ?