测试碰到的问题
自定义函数,传参调用时使用了引用传参,Fatal error: Call-time pass-by-reference has been removed in D:\jiagou\practice\class.php on line 52
研究手册之后发现5.3以后不能这么用了,需要在定义函数时使用引用传形参。。。。。。。。。。。。。。
function get_ar(&$arr)
{
unset($arr[0]);
}
$arr1=array(1,2);
get_ar(&$arr1);