输入banner图图片脚本导航/分类

php方法形参没有传怎么判断

形参php函数

call_user_func_array(array($obj, $function), $receive_data);
我调用的$function方法若需要二个参数。此是我$receive_data为空。php运行会报错。
怎么事先判断$function函数需要参数。