note 115017 added to function.boolval

From: Date: Tue, 13 May 2014 09:14:55 +0000
Subject: note 115017 added to function.boolval
Groups: php.notes 
Request: Send a blank email to php-notes+get-199526@lists.php.net to get a copy of this message
I believe that the double negation !! can perform the same task with the same result if your PHP is not up2date var_dump(!!1, !!0, !!"test", !!""); outputs: boolean true boolean false boolean true boolean false May the life be good to you. ---- Server IP: 195.184.96.15 Probable Submitter: 93.176.66.250 ---- Manual Page -- http://php.net/manual/en/function.boolval.php Edit -- https://master.php.net/note/edit/115017 Del: integrated -- https://master.php.net/note/delete/115017/integrated Del: useless -- https://master.php.net/note/delete/115017/useless Del: bad code -- https://master.php.net/note/delete/115017/bad+code Del: spam -- https://master.php.net/note/delete/115017/spam Del: non-english -- https://master.php.net/note/delete/115017/non-english Del: in docs -- https://master.php.net/note/delete/115017/in+docs Del: other reasons-- https://master.php.net/note/delete/115017 Reject -- https://master.php.net/note/reject/115017 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#199526) next »