note 39979 added to language.operators.bitwise
| From: | tanstep at hotmail dot com | Date: | Tue, 17 Feb 2004 14:14:10 +0000 |
| Subject: | note 39979 added to language.operators.bitwise | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-65286@lists.php.net to get a copy of this message | ||
Note that precedence is wrong for bitwise and comparison operators:
use this:
if((pow(2, $pos) & $_bits) > 0)
NOT this:
if(pow(2, $pos) & $_bits > 0)
----
Manual Page -- http://www.php.net/manual/en/language.operators.bitwise.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39979
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39979&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39979&report=yes
Search -- http://master.php.net/manage/user-notes.php