文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>php register_shutdown_function

php register_shutdown_function

时间:2011-03-17  来源:nodot

官方描述:

void register_shutdown_function ( callback $function [, mixed $parameter [, mixed $...]] )

Registers the function named by function to be executed when script processing is complete or when exit() is called.

Multiple calls to register_shutdown_function() can be made, and each will be called in the same order as they were registered. If you call exit() within one registered shutdown function, processing will stop completely and no other registered shutdown functions will be called.

        register_shutdown_function(do_exit());
        function do_exit()
        {
            echo "goodbye,my boys.";
        }
        exit("oh,my lady gaga!");        register_shutdown_function(do_exit());
        function do_exit()
        {
            echo "goodbye,my boys.";
        }
        exit("oh,my lady gaga!");

这样执行exit前自动调用do_exit方法

相关阅读 更多 +
排行榜 更多 +
粘人小公举

粘人小公举

休闲益智 下载
奥特曼系列ol腾讯qq版

奥特曼系列ol腾讯qq版

角色扮演 下载
同.桌双人游戏

同.桌双人游戏

休闲益智 下载