您的位置:首页 > 编程语言 > PHP开发

PHP call_user_func与call_user_func_array函数的用法

2017-06-16 06:18 429 查看
call_user_func(funcName,parameter1,parameter2,parameter3);

把第一个参数作为回调函数调用,其余参数是回调函数的参数。

call_user_func(funcName,array(parameter1,parameter2,parameter3));

把第一个参数作为回调函数调用,数组中的元素是回调函数的参数。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: