Thread: operators
View Single Post
  #15  
Old 11-05-2006, 10:53 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Quote:
Originally Posted by Tolnaftate2004 View Post
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.
Reply With Quote