background image

有参的

spl_autoload_register()默认不再加载 spl_autoload()函数。

可以通过

spl_autoload_functions()查看当前自动加载 hashtable 中的函数,该函数返回一个数


注 意 : 使 用

spl_autoload 时 , 系 统 会 忽 略 拦 截 器 __autoload , 除 非 显 式 地 使 用

spl_autoload_register('__autoload')将其加入 hashtable