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> <클래스/객체
Last updated: Sun, 25 Nov 2007

view this page in

call_user_method_array

(PHP 4 >= 4.0.5, PHP 5)

call_user_method_array — 배열 매개변수와 함께 사용자 메소드를 호출한다 [낡았음]

설명

mixed call_user_method_array ( string $method_name , object $obj [, array $paramarr ] )
Warning

call_user_method_array() 함수는 PHP 4.1.0 부터 낡은 함수가 되었다. 대신 array(&$obj, "method_name") 문법을 갖는 call_user_func_array() 변종(variety)을 사용하도록 한다.

paramarr 매개변수를 사용하여, 사용자 선언된 obj 객체에서 method_name 으로 참조되는 메소드를 호출한다.

call_user_func_array(), call_user_func(), call_user_method() 참고.

Note: 이 함수는 PHP 4.0.4pl1 릴리즈 이후의 CVS 코드에 추가되었다.



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> <클래스/객체
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites