Tuesday, September 20, 2011

How can you swap values of two variables without a 3rd variable in PHP?

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

No comments :