note 118724 added to function.boolval
| From: | IkkiPhenix | Date: | Tue, 26 Jan 2016 15:16:41 +0000 |
| Subject: | note 118724 added to function.boolval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204771@lists.php.net to get a copy of this message | ||
(sorry for my english)
This function is not necessary.
if ($variable)
as the same effect than
if (boolval($variable))
at least for integer, float, string, boolean, array types.
----
Server IP: 72.52.91.14
Probable Submitter: 128.78.25.143
----
Manual Page -- http://php.net/manual/en/function.boolval.php
Edit -- https://master.php.net/note/edit/118724
Del: integrated -- https://master.php.net/note/delete/118724/integrated
Del: useless -- https://master.php.net/note/delete/118724/useless
Del: bad code -- https://master.php.net/note/delete/118724/bad+code
Del: spam -- https://master.php.net/note/delete/118724/spam
Del: non-english -- https://master.php.net/note/delete/118724/non-english
Del: in docs -- https://master.php.net/note/delete/118724/in+docs
Del: other reasons-- https://master.php.net/note/delete/118724
Reject -- https://master.php.net/note/reject/118724
Search -- https://master.php.net/manage/user-notes.php