View Single Post
08-24-2011, 03:38 AM
#3
.Nick is offline .Nick
.Nick's Avatar
Status: Request a custom title
Join date: Feb 2005
Location:
Expertise:
Software:
 
Posts: 1,159
iTrader: 3 / 100%
 

.Nick is on a distinguished road

  Old

PHP Code:
list($a$b) = array($b$a); 
Edit:

Originally Posted by Village Genius View Post
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.