企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
``` <?php echo 'sddssds'; //require ('./class1.php'); //require ('./class2.php'); function my_loader($class){ require ($class.'.php'); //require ('class2.php'); } //my_loader('class1'); spl_autoload_register('my_loader'); $tag=true; if($tag){ echo 'this is class1'; $class=new class1(); $class->test(); }else{ echo 'this is class2'; $class=new class2(); } ```