对于你的代码
call_user_func_array('b', $p);
实际执行的是
b('123', 123, 'fdg')
即向函数 b 传递了 3 个参数而 function b($p) 只声明了一个形参 $p
所以在函数中可以直接访问到他 var_dump($p);//123