Search found 1 match

by einarb
Fri Nov 12, 2010 8:40 am
Forum: PHP - Code
Topic: Autoloading headache
Replies: 1
Views: 253

Autoloading headache

I stumbled on something regarding the PHP autoloader. If I have the following in a file called A.php: function __autoload($class_name) { include $class_name . '.php'; } class Starter extends SubClass { function __construct() { parent::__construct(); print "In Starter constructor\n"; } } cl...