Posted on May 19th, 2011 in PHP Basics, PHP Functions
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 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.
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..