I am learning advanced PHP standards and trying to implement new and useful methods. Earlier I was using `__autoload` just to escape including multiple files on each page, but recently I have seen a tip on [`__autoload manual`](http://in2.php.net/__autoload) 

> 
> **spl\_autoload\_register()** provides a more flexible alternative for
>  autoloading classes. For this reason, using **\_\_autoload()** is
>  discouraged and may be deprecated or removed in the future.
> 
> 
> 

but I really can't figure out how to implement [`spl_autoload`](http://www.php.net/manual/en/function.spl-autoload.php) and [`spl_autoload_register`](http://www.php.net/manual/en/function.spl-autoload-register.php)