php shutdown linux code example Example: php shutdown function register_shutdown_function(function () { # code });