我看到symfony2的Psr4ClassLoader類中有一句是:publicfunctionregister($prepend=false){spl_autoload_register(array($this,'loadClass'),true,$prepend);}spl_autoload_register函數(shù)的第一個參數(shù)是字符串的話,我能理解是將名為字符串的函數(shù)加到autoload棧中。但是這里是一個數(shù)組是什么意思呢?
spl_autoload_register 參數(shù)問題
三國紛爭
2019-04-16 20:27:52