Hex operations
| From: | Frank S. Kicenko | Date: | Thu, 20 Jun 2002 23:28:24 +0000 |
| Subject: | Hex operations | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103215@lists.php.net to get a copy of this message | ||
Ugggg... Does anybody know why this doesn't work...
Example:
$cap = 16383;
$cap1 = dechex($cap);
// cap1 is now equal to 3FFF;
$bit = ($cap1 | 0x01);
//bit should equal 3FFF, but it doesn't.. it is always = 3 !!