call_user_method

(PHP 4, PHP 5)

call_user_methodCall a user method on an specific object

Опис

mixed call_user_method ( string $method_name , object &$obj [, mixed $parameter [, mixed $... ]] )
Увага

This function was DEPRECATED in PHP 4.1.0, and REMOVED as of PHP 7.0.0.

Параметри

method_name

The method name being called.

obj

The object that method_name is being called on.

parameter ...

The optional parameters.

Приклади

Приклад #1 call_user_method() alternative

<?php
call_user_func
(array($obj$method_name), $parameter /* , ... */);
?>

Прогляньте Також

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top