$val1= 5;
$val2 = 10;
function foo(&$my_val){
global $val1;
$val1+=2;//7
$val2 =4;//4
$my_val +=3;//8
return $val2;//4
}
$my_val = 5;
echo foo($my_val)."\n";//4
echo $my_val."\n";//8
echo $val1."\n".$val2."\n";//7 10
$bar = 'foo';
$my_val = 10;
echo $bar($my_val)."\n";//4
最后一行$bar($my_val)是什么写法,求大神讲解!!!