PHP 5.1 and spl_autoload_register

Since PHP 5.1 we have spl_autoload_register¬†¬†(since PHP 5.0 we are able to define __autoload function); Since PHP 5, if you define a function called __autoload, it will be called each time that you try to access a class that doesn’t exist. When calling a static method as well as instantiating a new object of that…