call_user_method_array() 函数调用给定参数数组的用户方法。
注意 - 该函数现已弃用。
call_user_method_array(method, obj, params)
方法 - 方法名称
obj - 正在调用方法的对象。
立即学习“PHP免费学习笔记(深入)”;
params - 参数数组
由于 call_user_method_array() 在 PHP 4.1.0 中已弃用,并在 PHP 7.0 中删除,因此使用以下作为替代解决方案 -
call_user_func_array(array($obj, $method), $params);
以上就是在PHP中的call_user_method_array()函数的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号