时间:2021-07-01 10:21:17 帮助过:34人阅读
$param = array(); $param[] = $a; $param[] = $b; $param[] = $c; foo($param){ echo $param[0]; echo $param[1]; echo $param[2]; }
------解决方案--------------------
$result = array_merge($array1, $array2); function foo($result){ $array1 = $result[0]; $array2 = $result[1]; }
------解决方案--------------------
call_user_func_array('foo',array($a,$b,$c));