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> <Funkcje Klasy/Obiekty
Last updated: Fri, 10 Oct 2008

view this page in

call_user_method_array

(PHP 4 >= 4.0.5, PHP 5)

call_user_method_array Wywołuje metodę użytkownika zadaną z tablicą parametrów [przestarzałe]

Opis

mixed call_user_method_array ( string $nazwa_metody , object &$obiekt , array $tabparam )
Ostrzeżenie

Funkcja call_user_method_array() jest przestarzała od PHP 4.1.0, zamiast niej użyj funkcji call_user_func_array() posługując się składnią array(&$obiekt, "nazwa_metody").

Wywołuje metodę nazwaną nazwa_metody z obiektu obiekt zdefiniowanego przez użytkownika, używając parametrów z tabparam .

Patrz także: call_user_func_array() i call_user_func().



add a note add a note User Contributed Notes
call_user_method_array
leonwinter at gmail dot com
02-Oct-2006 01: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> <Funkcje Klasy/Obiekty
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites