News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brandon Savage's Blog:
Making Life Better With The SPL Autoloader
July 24, 2009 @ 10:49:52

Brandon Savage has a new post to his blog today looking at autoloading in your application and how the functionality the Standard PHP Library (SPL) provides can make life simpler.

If you've been in the business for any length of time you'd recognize this because almost every single PHP developer does it at one point or another. Until they learn about SPL's autoload functions, that is.

He talks about the spl_autoload_register function that allows you to define your own custom callback function (not just __autoload) to handle the inclusion of the needed files. He even gives examples of some more complex situations where autoloading like this could come in handy.

0 comments voice your opinion now!
spl auoloader tutorial


blog comments powered by Disqus

Similar Posts

VG Tech: Swagger Docs in ZF2 with Examples - Part 2: Swagger UI

Juozas Kaziukenas' Blog: Starting with Zend_Search_Lucene

Giorgio Sironi's Blog: Php login with Zend_Auth

PHPMaster.com: Laravel: Is It Really Clean and Classy?

Rob Young's Blog: Non-blocking I/O With PHP-MIO


Community Events





Don't see your event here?
Let us know!


package symfony series framework api language introduction interview zendserver library laravel bugfix release podcast tips community voicesoftheelephpant install deployment opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework