note 55071 deleted from language.operators.bitwise by danielc
| From: | danielc@php.net | Date: | Mon, 13 Apr 2009 16:12:52 +0000 |
| Subject: | note 55071 deleted from language.operators.bitwise by danielc | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153163@lists.php.net to get a copy of this message | ||
Note Submitter: alexrussell101 at gmail dot com
Reason: 0
----
re the 12 ^ 9 = 5 comment, the link doesn't seem to work but here's the explanation
(although if you're dealing with bitwise operators you really should get this):
12 in binary is 1100
9 in binary is 1001
If you XOR (the ^ operator) these two binary values you get the binary value 0101 (101) which is 5
in decimal. It's that simple.