PHP5: Autoloading your magic!

__autoload() function can be very useful to optimize your code esp. when you have so many classes. Unlike class extensions, optional parameters with class restrictions may not load your class.

So, it’s very encouraging to use classes everywhere! Even encapsulating your functions inside simple classes to use like static modules, will help a lot! … Read morePHP5: Autoloading your magic!