note 84364 deleted from function.empty by danbrown

From: Date: Fri, 28 Nov 2008 22:06:39 +0000
Subject: note 84364 deleted from function.empty by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-147300@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- @ john_jian responding to: 0 == '0' ==> true no wonder: php performs an implicit (int) to '0' if one of the compared parameters is found to be type number. So 0 == '0' is the same as 0 == (int)'0' and results to true. Using 0==='0' will get the "right" result with strict comparison.

« previous php.notes (#147300) next »