Code Comments
Programming Forum and web based access to our favorite programming groups.Is it possible to use __autoload for interfaces as well ? if file exists ($path . '/class.$name.php' require class else if file exists ($path . '/interface.$name.php' require interface else throw exception Pugi!
Post Follow-up to this message..oO(Pugi!) >Is it possible to use __autoload for interfaces as well ? Sure. But you should have a look at spl_autoload_register() instead. It's the more portable way for autoloading, especially if you want to use third- party scripts that might already have their own __autoload() function. Micha
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.