void register_shutdown_function ( function callback[, mixed param [, mixed ...]] ) registers with PHP a function to be run when script execution ends
<?
function say_goodbye( ) {
echo "Goodbye!\n";
}
register_shutdown_function("say_goodbye");
echo "Hello!\n";
?>
Related examples in the same category