This is a discussion on is it possible to use autoload for interfaces ? within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Is it possible to use __autoload for interfaces as well ? if file exists ($path . '/class.$name.php' require class else ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
..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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|