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