note 17207 added to language.operators.bitwise
| From: | kris at abccom dot bc dot ca | Date: | Thu, 29 Nov 2001 19:32:58 +0000 |
| Subject: | note 17207 added to language.operators.bitwise | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-21446@lists.php.net to get a copy of this message | ||
When using PHP 3 (and perhaps 4), remember to typecast your variables. I was having very very weird
issues with this code:
$discipline & $HTTP_GET_VARS[discipline]
but this:
(int)$discipline & (int)$HTTP_GET_VARS[discipline]
works just fine.
--
http://www.php.net/manual/en/language.operators.bitwise.php
http://master.php.net/manage/user-notes.php?action=edit+17207
http://master.php.net/manage/user-notes.php?action=delete+17207
http://master.php.net/manage/user-notes.php?action=reject+17207