note 84364 added to function.empty

From: Date: Thu, 10 Jul 2008 13:50:58 +0000
Subject: note 84364 added to function.empty
Groups: php.notes 
Request: Send a blank email to php-notes+get-141364@lists.php.net to get a copy of this message
@ 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. ---- Server IP: 212.124.37.9 Probable Submitter: 62.206.48.22 ---- Manual Page -- http://www.php.net/manual/en/function.empty.php Edit -- https://master.php.net/note/edit/84364 Del: integrated -- https://master.php.net/note/delete/84364/integrated Del: useless -- https://master.php.net/note/delete/84364/useless Del: bad code -- https://master.php.net/note/delete/84364/bad+code Del: spam -- https://master.php.net/note/delete/84364/spam Del: non-english -- https://master.php.net/note/delete/84364/non-english Del: in docs -- https://master.php.net/note/delete/84364/in+docs Del: other reasons-- https://master.php.net/note/delete/84364 Reject -- https://master.php.net/note/reject/84364 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#141364) next »