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
1
2
3
<?php
call_user_func_array(array($obj$method_name), $params);
?>
See also:

call_user_func_array() -

call_user_func() -

doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.