function call user method TXSJUG43F6HHFV7P257RB6MBJOKVB3GPDYGUBRI


call_user_methodPodręcznik PHPPoprzedniNastępnycall_user_method (PHP 3>= 3.0.3, PHP 4 >= 4.0.0)call_user_method --  Call a user method on an specific object Descriptionmixed call_user_method ( string method_name, object obj [, mixed parameter [, mixed ...]]) Calls a the method referred by method_name from the user defined obj object. An example of usage is below, where we define a class, instantiate an object and use call_user_method() to call indirectly its print_info method. <?php class Country { var $NAME; var $TLD; function Country($name, $tld) { $this->NAME = $name; $this->TLD = $tld; } function print_info($prestr="") { echo $prestr."Country: ".$this->NAME."\n"; echo $prestr."Top Level Domain: ".$this->TLD."\n"; } } $cntry = new Country("Peru","pe"); echo "* Calling the object method directly\n"; $cntry->print_info(); echo "\n* Calling the same method indirectly\n"; call_user_method ("print_info", $cntry, "\t"); ?> See also call_user_func_array(), call_user_func(), call_user_method_array(). PoprzedniSpis treściNastępnycall_user_method_arrayPoczątek rozdziałuclass_exists

Wyszukiwarka

Podobne podstrony:
function call user method array
function call user method array
function call user method
function call user func array
function call user func
function call user func array
function call user func
function get class methods
function ignore user abort
function get class methods
function ignore user abort
function hwapi user
function xmlrpc parse method descriptions
Functional Correction KT method
function ignore user abort
function w32api set call method
function xmlrpc server call method

więcej podobnych podstron