Hosting de Calidad
  • Inicio
  • Precios y servicios
  • F.a.q y ayudas
  • Realizar pedido
  • Webs alojadas
  • Quienes somos
  • Foro HyD
  • Contacto

    Zona Dominios

    Entrar
    registro de dominios


    Zona Hosting

    Entrar
    alojamiento web


    5 Métodos de Pago
    Tarjeta de crédito
    Domiciliación
    Transferencia
    Soporte Epagado
    Soporte Paypal

    Liberalización .es

    Ver mas
    dominios .es


  •  
     
     
    call_user_method

    call_user_method

    (PHP 3>= 3_0_3, PHP 4 )

    call_user_method __  Call a user method on an specific object [deprecated]

    Description

    mixed call_user_method ( string method_name, object obj [, mixed parameter [, mixed ___]])

    Aviso

    The call_user_method() function is deprecated as of PHP 4_1_0, use the call_user_func() variety with the array(&$obj, "method_name") syntax instead_

    Calls 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(), and call_user_method_array()_

     
       



    registro de dominios | alojamiento web | hosting por publicidad

       

     

    Manual de linux Manual de apache Manual de php Manual de mysql Manual de SQL Manual del Plesk Como funciona Paypal Manual de html