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 — Appelle une méthode utilisateur avec un tableau de paramètres [obsolète]
Description
Avertissement
La fonction call_user_method_array() est obsolète depuis PHP 4.1.0.
Exemples
Exemple #1 Alternative à la fonction call_user_method_array()
<?php
call_user_func_array(array($obj, $method_name), $params);
call_user_func_array(array(&$obj, $method_name), $params); // PHP 4
?>
call_user_method_array
leonwinter at gmail dot com
02-Oct-2006 04:45
02-Oct-2006 04:45
