Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
案例源码
<?php
namespace zuoye0816;
use function PHPSTORM_META\sql_injection_subst;
spl_autoload_register(function($class){
require $class.'.php';
});
use test\control\test1;
use test\control\test2;
use test\control\test3;
$testnew1 = new test1;
$testnew2 = new test2;
$testnew3 = new test3;
echo $testnew1->test1().'<hr>';
echo $testnew2->test2().'<hr>';
echo $testnew3->test3().'<hr>';
echo __DIR__;
类文件
案例结果