Swapping – Give It a Try!

Hello friends, I was once asked this question in an PHP interview

“Swap values between two variables without using a third variable”

$a = 5;
$b = 7;

It took me less then 2 seconds to solve this…

Now you give it a try and let us know how soon you did it 🙂

Leave a Reply

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