note 115554 deleted from function.boolval by salathe

From: Date: Fri, 22 Aug 2014 08:10:54 +0000
Subject: note 115554 deleted from function.boolval by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-200266@lists.php.net to get a copy of this message
Note Submitter: mcirillo()Code4Armour!com ---- 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

« previous php.notes (#200266) next »