Mega Code Archive
Categories
/
Php
/
Class
Using the __autoload() Function
"/path/to/myClass.class.php", 'anotherClass' => "/path/to/anotherClass.class.php"); if(!isset($files[$class])) return; require_once($files[$class]); } $a = new MyClass; $b = new anotherClass; ?>