is it possible to use autoload for interfaces ?
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!
|