note 113444 deleted from function.boolval by tularis
| From: | tularis@php.net | Date: | Thu, 02 Jan 2014 11:53:45 +0000 |
| Subject: | note 113444 deleted from function.boolval by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-198075@lists.php.net to get a copy of this message | ||
Note Submitter: Tomasz Modzelewski
----
When someone is working on large projects, this feature can be useful boolval. In simple scripts, it
is best to cast to a boolean.
<?php
echo boolval(2); #1
?>
Will see the same thing:
<?php
echo (bool)2; #1
?>