PHP Code:
list($a, $b) = array($b, $a);
Edit:
Originally Posted by Village Genius
PHP Code:
<? $a = 'Raphael'; $b = 'Castiel';
echo "start $a $b <br />";
$a .= $b; $b=substr($a,0,(strlen($a)-strlen($b))); $a=substr($a,strlen($b)); echo "end $a $b <br />"; ?>
|
In case anyone is interested, it occurred to me today that this is more or less an
XOR swap.