php pass data to shutdown function code example Example: php shutdown function register_shutdown_function(function () { # code });