note 97801 deleted from language.operators.bitwise by danbrown
| From: | danbrown@php.net | Date: | Sun, 09 May 2010 17:10:10 +0000 |
| Subject: | note 97801 deleted from language.operators.bitwise by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169092@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
Note to previous commenter, when you assign variables with special characters in them, use
"single quotes" otherwise the contents will be evaulated.
Also, if you expect to perform bitwise operations on ASCII characters,
use "ord" to obtain the ordinal for the ASCII character, then bit shift that,
and convert back into ASCII with "chr".
For instance:
$a = ord("!");
$a = $a << 4;
$a = chr($a);