void register_shutdown_function ( function callback[, mixed param [, mixed ...]] ) registers with PHP a function to be run when script execution ends : register_shutdown_function « Utility Function « PHP






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

1.register_shutdown_function and sleep