note 50525 added to function.is-bool

From: Date: Wed, 02 Mar 2005 18:33:32 +0000
Subject: note 50525 added to function.is-bool
Groups: php.notes 
Request: Send a blank email to php-notes+get-85811@lists.php.net to get a copy of this message
I have not tested this, but I'm pretty sure that is_bool will return true on a variable set to false. Otherwise the function is pretty broken. Not sure where you got the idea that is_bool is the opposite of empty, but that's not the purpose of the function (nor does it make your code any more readable). Editor, please delete both these posts. ---- Manual Page -- http://www.php.net/manual/en/function.is-bool.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50525 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50525&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50525&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50525&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50525&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50525&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50525&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#85811) next »