Re: odd behavior of stripos() with === operator *LAST POST*
| From: | Michael | Date: | Fri, 17 Nov 2006 09:54:39 +0000 |
| Subject: | Re: odd behavior of stripos() with === operator *LAST POST* | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244786@lists.php.net to get a copy of this message | ||
This will be my last post on this thread of discussion.
Thanks to all who replied, I have it figured out.
I guess my only problem with the way the !== and === operators work in this situation is this:
Logic dictates that if something evaluates to NOT FALSE it must be TRUE.
Regardless of the type, regardless of the species, breed, flavor etc.
if !== evaluates to TRUE then === should also under the same conditions (all other things being
equal)
if !== evaluates an integer 0 to TRUE, so should ===, it can't be true and still return a false
value. The !== and === operators work differently, they should be complimentary.
Sorry if all this has inconvenienced anyone.
Cheers,
Michael