摘要: 简单写过几个例子,网上的资源也很多。感觉spl_autoload_register()就是在自定义规则上比__autoload好一些,在一个文件里写好规则,需要使用的时候,一句引用就可以实现不同的规则。 spl_autoload_register(function($class) { $file = 阅读全文
posted @ 2017-10-11 14:58 artstylemo 阅读(134) 评论(0) 推荐(1) 编辑