Say for instance I have ...
$var1 = \"ABC\" $var2 = 123
and under certain conditions I want to sw
Thanks for the help. I've made this into a PHP function swap()
function swap(&$var1, &$var2) { $tmp = $var1; $var1 = $var2; $var2 = $tmp; }
Code example can be found at:
http://liljosh.com/swap-php-variables/