Swap value program in php

 <?php

$a=5;
$b=10;
$a=$a+$b; //5+10=15;
$b=$a-$b; //15-10=5;
$a=$a-$b; //15-5=10;

echo "a=$a<br>b=$b";

Comments