Re: odd behavior of stripos() with === operator
| From: | Stut | Date: | Fri, 17 Nov 2006 09:10:03 +0000 |
| Subject: | Re: odd behavior of stripos() with === operator | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244776@lists.php.net to get a copy of this message | ||
Michael wrote:
Ok, picking gnits... I should have said NOT true and NOT false at the same time. As for the return of the integer 0.. The documentation indicates that the === and !== operators take this into account in fact there is a specific example in the manual. My point here is that if !== works , why does === not?I think you need to re-read the docs for ===. 0 !== false 0 == false 1 == true 1 !== true only... false === false and true === true The === and !== check both value and type, so 0 and false are different. Hope that helped. -Stut