register_shutdown_function

register_shutdown_function

(PHP 4, PHP 5, PHP 7)

register_shutdown_functionRegister a function for execution on shutdown

Description

void register_shutdown_function ( callable $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 th