call_user_func_array

来源:互联网 发布:网络配置的模拟软件 编辑:程序博客网 时间:2024/05/16 04:28
<?phpfunction yourname($a,$b){echo "a:".$a."<br>";echo "b:".$b."<br>";}class users {function show()    {    call_user_func_array( 'yourname',array("111", "222"));//等于下行写法    //yourname("111", "222");    }}$u=new users();$u->show();?>

原创粉丝点击