note 102802 rejected from language.operators.logical by danbrown

From: Date: Mon, 07 Mar 2011 17:05:24 +0000
Subject: note 102802 rejected from language.operators.logical by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177631@lists.php.net to get a copy of this message
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.

« previous php.notes (#177631) next »