
11-05-2006, 10:53 PM
|
|
[TServerDeveloper]
|
Join Date: Jun 2006
Posts: 448
|
|
Quote:
Originally Posted by Tolnaftate2004
Uhhhh xor does not act like you think it does.
PHP Code:
var_a = 1; // or in binary, 000......0001
var_b = 2; // or in binary, 000......0010
var_c = var_a xor var_b; // only where one of the bits from either variable's binary values is 1, so we get 000.......0011, or 3.
|
Ah.  On the binary level. |
|
|
|