If you this function will be deleted in future php releases you can use this function:
<?
function _call_user_method_array($name, $obj, $params) {
// get params
$txt = "";
foreach($params as $nr => $el) {
$txt.='$params['.$nr."], ";
}
$txt = substr($txt, 0, strlen($txt)-2);
// run it
return eval('return call_user_method($name, $obj, '.$txt.');');
}
?>
Hope this helps somebody.
call_user_method_array
(PHP 4 >= 4.0.5, PHP 5)
call_user_method_array -- Call a user method given with an array of parameters [deprecated]Description
mixed call_user_method_array ( string method_name, object obj [, array paramarr])| Uyarı |
The call_user_method_array() function is deprecated as of PHP 4.1.0, use the call_user_func_array() variety with the array(&$obj, "method_name") syntax instead. |
Calls the method referred by method_name from the user defined obj object, using the parameters in paramarr.
See also: call_user_func_array(), and call_user_func().
call_user_method_array
leonwinter at gmail dot com
02-Oct-2006 04:45
02-Oct-2006 04:45
