Re: odd behavior of stripos() with === operator

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux