ReflectionMethod::invokeArgsInvoke args
&reftitle.description;
publicmixedReflectionMethod::invokeArgsobjectnullobjectarrayargs
Invokes the reflected method and pass its arguments as array.
&reftitle.parameters;
object
The object to invoke the method on. In case of static methods, you can pass
null to this parameter.
args
The parameters to be passed to the function, as an array.
&reftitle.returnvalues;
Returns the method result.
&reftitle.errors;
A ReflectionException if the object
parameter does not contain an instance of the class that this method was declared in.
A ReflectionException if the method invocation failed.
&reftitle.examples;
ReflectionMethod::invokeArgs example
invokeArgs(new HelloWorld(), array('Mike'));
?>
]]>
&example.outputs;
&reftitle.notes;
&reflection.invoke.reference;
&reftitle.seealso;
ReflectionMethod::invoke__invoke()call_user_func_array