Home > Q&A > body text
说是 include_once require_once 效率很低
include_once
require_once
然后用 spl_autoload_register 好像也要做很多的判断
spl_autoload_register
有什么办法能解决呢?
高洛峰2017-04-10 14:42:31
Laruence曾经在博客上解释过,以及解决方法http://www.laruence.com/2012/09/12/2765.html
可参考psr-0命名标准并结合spl_autoload_register实现类自动加载 具体实现参考composer的ClassLoader类