- 博客(1)
- 收藏
- 关注
转载 call_user_func 与 call_user_func_array的使用
call_user_func()是利用回调函数处理字符串,call_user_func_array是利用回调函数处理数组. // 1、 调用自定义函数 function test($a, $b) { echo $a + $b; } // 字符串传参 call_user_func(‘test‘, 1, 2); // 3 // 数组式传参 call_user_func_array(‘tes...
2019-09-07 00:19:44 169
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人