News Feed
Sections




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

DevShed:
The Autoload Magic Function in PHP 5
June 23, 2009 @ 07:56:57

DevShed has posted the latest article (the last) in their series looking at the "magic functions" that PHP has to offer. This time they take a closer look at the autoload functionality.

PHP 5 offers yet another magic method that can be extremely useful for loading classes automatically, without having to use explicitly any "include()/include_once()" or "require()/require_once()" function. As the article's title suggests, I'm talking specifically about the "__autoload()" function, which deserves a deeper analysis.

Their example shows how to define the __authoload method for your application to load in libraries as they're needed, without having to specifically define them.

2 comments voice your opinion now!
tutorial function magic autoload


blog comments powered by Disqus

Similar Posts

Attila Szabo's Blog: Send SMS messages from your website through smsBug gateway

Evan Coury's Blog: Using Zend\Dbs TableGateway & HydratingResultSet to return rows as custom enties

DevShed: Working with Images and Text Flows in PDF Files with PHP 5

IBM developerWorks: Build a Web service with PHP

PHPMaster.com: Understanding OAuth - Tweeting from Scratch, Part 2


Community Events





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


introduction series community framework mvc composer voicesoftheelephpant interview laravel version opinion release update language symfony tool package library podcast security

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