PHP Extension and Application Repository Documentation
PEAR::registerShutdownFunc() -- set a shutdown function for static classes (package developer related)
Description
The indicated function is called, before the PHP interpreter will
be finished.
Parameter
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
Example 19-1. Using registerShutdownFunc() <?php
require_once 'PEAR.php';
class myClass {
function myClass()
{
PEAR::registerShutdownFunc(array('myClass', 'shutdown'),
array('param1', 'param2'));
}
function shutdown( $param1, $param2)
{
// do something before we will die
}
}
?> |
|
© 2001 - 2009 CYGAD.NET | All rights reserved. |
Terms of Service |
About | Time data: GMT +1! | Portal Release X2.6.1 Beta | RunTime: 0.497
Optimized for

Internet Explorer 6.0+,

Firefox 1.5+!