register_shutdown_function()
register_shutdown_function - Register a function for execution on shutdown
Syntax
register_shutdown_function (
callback $function,
mixed $parameter,
mixed $...)
Arguments
- function - The shutdown function to register. The shutdown functions are called as the part of the request so that it\'s possible to send the output from them. There is currently no way to process the data with output buffering functions in the shutdown function. Shutdown functions are called after closing all opened output buffers thus, for example, its output will not be compressed if zlib.output_compressionis enabled.
- parameter - It is possible to pass parameters to the shutdown function by passing additional parameters.
- ...
Description
Registers the function named by function to be executed when script processing is complete or when exit() is called.
Version
PHP 4, 5
Return value
No value is returned.