note 39027 added to function.is-bool
| From: | RobCasey | Date: | Thu, 15 Jan 2004 00:19:57 +0000 |
| Subject: | note 39027 added to function.is-bool | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63573@lists.php.net to get a copy of this message | ||
Following up the comments by jeppe at bundsgaard dot net - The integer representation of a boolean
can be returned by a bitwise and-operation against 1:
(bool) & 1 = (int)
----
Manual Page -- http://www.php.net/manual/en/function.is-bool.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39027
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39027&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39027&report=yes
Search -- http://master.php.net/manage/user-notes.php