register_shutdown_function

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

説明

Registers a callback to be executed after script execution finishes or 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.

戻り値

No value is returned.