Blog - Latest News

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 […]

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *