1、使用函数: $a = 123; $b = 456;
list($b,$a) =array($a,$b);
2、数学算式:$a =$a+$b-$b; $a =2; $b =1; $a =$a+$b; //$a =3;
$b=$a-$b; //$b =1; $a =$a-$b; //$a =2;
3、字符串妙用: $a = $a.-.$b; $b =explod('-',$a); $a =$b[1]; $b =$b[0];