View Single Post
Old 05-27-2010, 12:57 PM   #31 (permalink)
core1024
The Wanderer
 
Join Date: May 2010
Posts: 19
Thanks: 1
core1024 is on a distinguished road
Default

I see this threat is old, but I like classics
Here is my try:
PHP Code:
$a=1;
$b=2;
function 
swab($x,$y){
  global 
$a;
  
$a=$y;
  
$y=$x;
}
swab($a,&$b);
echo 
"\$a=$a; \$b=$b"
core1024 is offline  
Reply With Quote