call_user_method
(PHP 4, PHP 5)
call_user_method — Call a user method on an specific object
Description
Warning
The call_user_method() function is deprecated as of PHP 4.1.0.
Parameters
-
method_name
-
The method name being called.
-
obj
-
The object that
method_name
is being called on. -
parameter ...
-
The optional parameters.
Examples
Example #1 call_user_method() alternative
<?php
call_user_func(array($obj, $method_name), $parameter /* , ... */);
?>
See Also
- call_user_func_array() - Call a callback with an array of parameters
- call_user_func() - Call the callback given by the first parameter