note 35662 added to language.operators.bitwise
| From: | tickled at rn2 dot php dot net | Date: | Wed, 10 Sep 2003 08:46:59 +0000 |
| Subject: | note 35662 added to language.operators.bitwise | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-55919@lists.php.net to get a copy of this message | ||
To the poster who wanted more information on bitwise operators in PHP, they tend to be used more in
C/C++ or assembly language. However, they can be useful in PHP.
One example is where you're using MySQL and have a form with several checkboxes. It's a
pain and not very efficient to have a DB containing columns for every one of these checkboxes. So,
try compressing the checkbox values into a single variable and therefore a single MySQL column.
----
Manual Page -- http://www.php.net/manual/en/language.operators.bitwise.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+35662
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+35662&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+35662&report=yes