Why does the autoloader.php file know that $className represents test
family
family 2019-11-15 11:49:09
0
1
1218

function __autoload($className)

{

$path = $className.'.php'; //test.php

if (file_exists($path )) {

require_once($path);

}else {

echo $path."Does not exist, please check~~";

}

}

family
family

reply all(1)
卢小强

autoload() is an automatic loading function. $className in Chinese means class name, and $className is a variable. The value you pass is xxxx.php

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template