note 115304 deleted from language.operators.bitwise by salathe

From: Date: Thu, 03 Jul 2014 08:26:55 +0000
Subject: note 115304 deleted from language.operators.bitwise by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-199820@lists.php.net to get a copy of this message
Note Submitter: andvaranaut ---- @ivoras - actually, and as a curiosity, that's essentially correct (it's an artifact of the way ASCII is organized and of the way PHP handles bitwise operators on strings) - note that 0x18 & 0x32 = 0x10. The ASCII digit 'X' (for 0 to 9) is 0x3X, so ANDing two ASCII digits will yield the correct hex digit.

« previous php.notes (#199820) next »