note 124897 added to function.boolval

From: Date: Fri, 10 Apr 2020 10:07:07 +0000
Subject: note 124897 added to function.boolval
Groups: php.notes 
Request: Send a blank email to php-notes+get-214438@lists.php.net to get a copy of this message
It's unexpected and somewhat disappointing that boolval("false") will return true. When I upload a boolean value from javascript, it ends up as a string in the php script. I couldn't find that information in this page (at least not explicitly), which is why I submit this comment. ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.195 (proxied: 83.161.66.154) ---- Manual Page -- http://php.net/manual/en/function.boolval.php Edit -- https://master.php.net/note/edit/124897 Del: integrated -- https://master.php.net/note/delete/124897/integrated Del: useless -- https://master.php.net/note/delete/124897/useless Del: bad code -- https://master.php.net/note/delete/124897/bad+code Del: spam -- https://master.php.net/note/delete/124897/spam Del: non-english -- https://master.php.net/note/delete/124897/non-english Del: in docs -- https://master.php.net/note/delete/124897/in+docs Del: other reasons-- https://master.php.net/note/delete/124897 Reject -- https://master.php.net/note/reject/124897 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#214438) next »