Categories
PHP

PHP __autoload()

__autoload() runs (on PHP5) when a class that has not been included is requested. Usually it looks like this:

function __autoload ($class) {
   require_once($class . ‘.php’);
}

Leave a Reply

Your email address will not be published. Required fields are marked *