note 114013 added to function.boolval
| From: | Anonymous | Date: | Mon, 30 Dec 2013 17:12:38 +0000 |
| Subject: | note 114013 added to function.boolval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198055@lists.php.net to get a copy of this message | ||
A misspell in v2.0.
:-)
Hack v2.1
<?php
if( ! function_exists('boolval'))
{
/**
* Get the boolean value of a variable
*
* @param mixed The scalar value being converted to a boolean.
* @return boolean The boolean value of var.
*/
function boolval($var)
{
return !! $var;
}
}
?>
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/function.boolval.php
Edit -- https://master.php.net/note/edit/114013
Del: integrated -- https://master.php.net/note/delete/114013/integrated
Del: useless -- https://master.php.net/note/delete/114013/useless
Del: bad code -- https://master.php.net/note/delete/114013/bad+code
Del: spam -- https://master.php.net/note/delete/114013/spam
Del: non-english -- https://master.php.net/note/delete/114013/non-english
Del: in docs -- https://master.php.net/note/delete/114013/in+docs
Del: other reasons-- https://master.php.net/note/delete/114013
Reject -- https://master.php.net/note/reject/114013
Search -- https://master.php.net/manage/user-notes.php