void PEAR::registerShutdownFunc (array $func [, array $var = array()])
void PEAR::registerShutdownFunc
The indicated function is called, before the PHP interpreter will be finished.
array $func - the name of the class and of the function to ccore.
array $var - possible required function parameters. The parameters are handed over to the function in accordance with their succession of the array.
Example 13-1. Using registerShutdownFunc()