This post will provide the detailed explanation of the register_shutdown_function. We can register a user defined function at the end/termination of the PHP script.

This entry is part 1 of 6 in the series PHP Reserved Functions

As other programming/scripting language PHP also have some reserved functions, normally these functions starts with double underscore (__) in PHP.
These reserved functions adds some magic functionality to you code.

PHP supports the concept of the variable function. This means if you add the parentheses to the variable name then PHP will look for the function with the same name as that variable contain and will tried to execite that function. This is most useful to create a callback, function tables, etc..

Meet the Expert Developer  php5.in For Sale