function __autoload($className)
{
$path = $className.'.php'; //test.php
if (file_exists($path )) {
require_once($path);
}else {
echo $path."Does not exist, please check~~";
}
}
卢小强2019-11-16 08:55:17
autoload() is an automatic loading function. $className in Chinese means class name, and $className is a variable. The value you pass is xxxx.php