February 2013
Intermediate to advanced
538 pages
20h 55m
English
register_shutdown_function
void register_shutdown_function(callablefunction[, mixedarg1[, mixedarg2[, ... mixedargN]]])
Registers a shutdown function. The function is called when the page completes processing with the given arguments. You can register multiple shutdown functions, and they will be called in the order in which they were registered. If a shutdown function contains an exit command, functions registered after that function will not be called.
Because the shutdown function is called after the page has
completely processed, you cannot add data to the page with print(), echo(), or similar functions or
commands.
Read now
Unlock full access