编程笔记
用法对比:
<?phpfunction foo(&$var){ $var++;}
$a=5;foo($a);
echo $a;// $a is 6 here?>
<?phpfunction foo2($var){ $var++;}
$a=5;foo2($a);
echo $a;// $a is 5 here?>