call_user_method_array

call_user_method_array

(PHP 4 >= 4.0.5, PHP 5)

call_user_method_arrayCall a user method given with an array of parameters

Warning

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

Alternatives to this function include:

Description

mixed call_user_method_array ( string $method_name , object &$obj , array $params )

Parameters

method_name

The method name being called.

obj

The object that method_name is being called on.

params

An array of parameters.

Examples

Example #1 call_user_method_array() alternative

<?php
call_user_func_array(array($obj, $method_name), $params);
?>

See Also

© 1997–2017 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-array.php

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部