call_user_method_array

(PHP 4 >= 4.0.5, PHP 5)
Call a user method given with an array of parameters
mixed call_user_method_array ( string $method_name, object &$obj, array $params )
Parameters:
method_name

The method name being called.

obj

The object that method_name is being called on.

params

An array of parameters.

Examples:
call_user_method_array() alternative
<?php
call_user_func_array(array($obj, $method_name), $params);
?>

See also:

call_user_func_array() -

call_user_func() -

doc_php
2016-02-24 16:12:58
Comments
Leave a Comment

Please login to continue.