代码拉取完成,页面将自动刷新
<?php
/**
* spl_autoload_register函数
* 类自动加载函数
*/
// 注册并返回spl_autoload函数使用的默认文件扩展名,可以有多个,先找第一个,如没有才找接下来的后缀
spl_autoload_extensions('.php, .class.php');
// 加载类的路径
set_include_path(get_include_path() . PATH_SEPARATOR . "5_1_Class/");
// 让类的自动加载生效
spl_autoload_register();
// 调用自动加载的类
new Test();
// 加载Test.php的Test,这是初始化
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。