Swap two variables value without using third variable in php
Bit in Expression1 Bit in Expression2 Result 0 0 0 0 1 1 1 0 1 1 1 0 Example with two variable by XOR: $a = 5; // 5 => 00000101 $b = 6; // 6 => 00000110 $a = $a ^ $b; // 3 => 00000011 Now XOR of […]