News Feed
Sections




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

Martynas Jusevicius' Blog:
PHP 5 features Class autoloading
December 07, 2007 @ 10:29:00

Martynas Jusevicius continues his look at the enhanced features that PHP5 has to offer with this post focusing on the ability to autoload classes that haven't been defined yet.

Continuing the series about useful features in PHP 5, another overlooked one is class autoloading. [...] Basically, you get a class name as a parameter in your __autoload() function, and using it you have to figure out the path to the actual class file and include it.

He includes both a description and an example of some code in action and even points out something that can help to make for cleaner, more organized code - the ability to register more than one autloader with the spl_autoload_register function.

0 comments voice your opinion now!
php5 feature class autoloading splautoloadregister php5 feature class autoloading splautoloadregister


blog comments powered by Disqus

Similar Posts

DevShed: Setting up the Foundation for an Extensible Website Engine with PHP 5

Fabien Potencier's Blog: What for PHP6?

Elizabeth Smith's Blog: Xdebug, Thread Safety, and PHP 5.3

Chris Hartjes' Blog: Reader Feedback: Working with XML In PHP

HowToForge.com: Running Apache2 With PHP5 And PHP4 At The Same Time


Community Events





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


series framework release community developer unittest symfony2 podcast testing install laravel introduction language code experience opinion list refactor threedevsandamaybe interview

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