register_shutdown_function

(PHP 3>= 3.0.4, PHP 4 >= 4.0b1)

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.