register_shutdown_function

register_shutdown_function -- Register a function for execution on shutdown.

Description

int register_shutdown_function(string func);

Registers the function named by func to be executed when script processing is complete.

Common Pitfalls:

Since no output is allowed to the browser in this function, you will be unable to debug it using statements such as print or echo.