php shutdown function
snippet in php

php shutdown function

user519

register_shutdown_function(function () {
  # code
});