note 35662 deleted from language.operators.bitwise by sniper

From: Date: Mon, 13 Oct 2003 00:13:52 +0000
Subject: note 35662 deleted from language.operators.bitwise by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-58416@lists.php.net to get a copy of this message
Note Submitter: tickled pink ---- 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.

« previous php.notes (#58416) next »