func_num_args 返回传递给函数的参数数量 &reftitle.description; intfunc_num_args 获取传递给函数的参数数量。 此函数可以与 func_get_argfunc_get_args 结合使用,以便于允许用户定义的函数可以接受可变长度的参数列表。 &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; 返回传递给当前用户定义函数的参数数量。 &reftitle.errors; 如果从用户定义的函数外部调用,则生成警告。 &reftitle.examples; <function>func_num_args</function> 示例 ]]> &example.outputs; &reftitle.notes; ¬e.func-named-params; &reftitle.seealso; ... 语法 func_get_arg func_get_args ReflectionFunctionAbstract::getNumberOfParameters