PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

call_user_method> <Classes/Object Funzioni
Last updated: Fri, 18 Jul 2008

view this page in

call_user_method_array

(PHP 4 >= 4.0.5, PHP 5)

call_user_method_array — Richiama il metodo dato con un array di parametri [deprecated]

Descrizione

mixed call_user_method_array ( string $nome_metodo , object &$obj , array $paramarr )
Avviso

A partire dalla versione 4.1.0 è sconsigliato l'uso di call_user_method_array(); in sostituzione utilizzare la serie di funzioni call_user_func_array() con sintassi array(&$obj, "method_name").

Richiama il metodo indicato da nome_metodo dell'oggetto oggetto , utilizzando i parametri forniti in array_parametri .

Vedere anche: call_user_func_array() e call_user_func().



add a note add a note User Contributed Notes
call_user_method_array
leonwinter at gmail dot com
02-Oct-2006 04:45
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> <Classes/Object Funzioni
Last updated: Fri, 18 Jul 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites