, automatic loading mechanism
function __autoload() { //
$path = str_replace('_', '/', $class_name);
require_once $path . '.php';
}
// The Http/File/Interface.php file will be automatically loaded here
$a = new Face();
When a class is instantiated, the corresponding class file will be loaded
http://www.bkjia.com/PHPjc/760668.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/760668.htmlTechArticle, automatic loading mechanism function __autoload( ) { // $path = str_replace('_', '/', $class_name); require_once $path . '.php'; } // The Http/File/Interface.php file will be automatically loaded here...