note 115554 added to function.boolval

From: Date: Thu, 14 Aug 2014 15:03:32 +0000
Subject: note 115554 added to function.boolval
Groups: php.notes 
Request: Send a blank email to php-notes+get-200190@lists.php.net to get a copy of this message
The problem with most of these boolval implementations is that they handle 'false' (string) as a truthy value: example ( IDEone: http://ideone.com/u3gn0c ) !!'true' : true !!'false' : true !!'null' : true !!null : false (bool)'true' : true (bool)'false' : true (bool)'null' : true (bool)null : false ---- Server IP: 72.52.91.14 Probable Submitter: 199.212.66.167 ---- Manual Page -- http://php.net/manual/en/function.boolval.php Edit -- https://master.php.net/note/edit/115554 Del: integrated -- https://master.php.net/note/delete/115554/integrated Del: useless -- https://master.php.net/note/delete/115554/useless Del: bad code -- https://master.php.net/note/delete/115554/bad+code Del: spam -- https://master.php.net/note/delete/115554/spam Del: non-english -- https://master.php.net/note/delete/115554/non-english Del: in docs -- https://master.php.net/note/delete/115554/in+docs Del: other reasons-- https://master.php.net/note/delete/115554 Reject -- https://master.php.net/note/reject/115554 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200190) next »