note 102802 rejected from language.operators.logical by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: contact at linosilva dot com 

----

That's why you shouldn't use "==" to compare two variables that have different types. It gives you the result of the comparison alright, but only after type juggling.

Instead, try the "Identical" ( "===" ) comparison.

What I fail to understand though, is what that has to do with logical operators.

Cheers.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.