so i checkied how to swap 2 variables without a 3rd one and I found this solution -
$x ^= $y ^= $x ^= $y;
but I don't understand what the xor (^) does! never used it before and php.net has some strange examples I don't get..
can someone explain to me what is this thing and how it works?