Swap 2 Variables

// swap 2 variables without using temporary variable

<?php
$a = 10;
$b = 20;
list($a, $b) = array($b, $a);
?>

0 Comments

Post A Comment