func_num_argsReturns the number of arguments passed to the function
&reftitle.description;
intfunc_num_args
Gets the number of arguments passed to the function.
This function may be used in conjunction with
func_get_arg and func_get_args
to allow user-defined functions to accept variable-length argument lists.
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
Returns the number of arguments passed into the current user-defined
function.
&reftitle.errors;
Generates a warning if called from outside of a user-defined function.
&reftitle.examples;
func_num_args example
]]>
&example.outputs;
&reftitle.notes;
¬e.func-named-params;
&reftitle.seealso;
... syntaxfunc_get_argfunc_get_argsReflectionFunctionAbstract::getNumberOfParameters