20,396
社区成员
发帖
与我相关
我的任务
分享function test($a, $b) {
echo '传入: ' . join(',', func_get_args());
}
test(1,2); //传入: 1,2
test(1,2,3,4,5);//传入: 1,2,3,4,5
$ar = array('a','b','c','d','e','f');
call_user_func_array('test', $ar);//传入: a,b,c,d,e,f
您依然是没有准确的描述你的意思