(PHP 4, PHP 5)
call_user_method — Call a user method on an specific object
This function was DEPRECATED in PHP 4.1.0, and REMOVED in PHP 7.0.0.
Alternatives to this function include:
mixed call_user_method ( string $method_name , object &$obj [, mixed $parameter [, mixed $... ]] )
method_name
The method name being called.
obj
The object that method_name
is being called on.
parameter ...
The optional parameters.
Example #1 call_user_method() alternative
<?php call_user_func(array($obj, $method_name), $parameter /* , ... */); ?>
© 1997–2018 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://secure.php.net/manual/en/function.call-user-method.php