課程
/后端開發(fā)
/PHP
/站在巨人的肩膀上寫代碼—SPL
spl_autoload_register('__autoload');么?
2014-11-20
源自:站在巨人的肩膀上寫代碼—SPL 5-2
正在回答
__autoload() 不用注冊(cè),在實(shí)例化一個(gè)類時(shí),先從本文件里找,找不到再找spl_autoload_register注冊(cè)的函數(shù)里的方法去加載,再找不到就會(huì)調(diào)用默認(rèn)的__autoload()?
舉報(bào)
SPL,一個(gè)能找到登上絕頂?shù)奶焯?,學(xué)會(huì)后能提高實(shí)際工作的效率
2 回答為什么我在手冊(cè)中查詢,getCTime()函數(shù)的返回值是The last change time, in a Unix timestamp.
3 回答用Spl處理數(shù)組會(huì)不會(huì)比用php函數(shù)處理數(shù)組效率要高?
2 回答SPL如何刪除當(dāng)前指向的節(jié)點(diǎn)
1 回答get_include_path()如何獲取的?沒見之前有什么設(shè)置啊Gets the current include_path configuration option
2 回答為什么把getIterator這一段注釋掉,也可以順利往下執(zhí)行排序,可以循環(huán)出來結(jié)果??
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-08-25
__autoload() 不用注冊(cè),在實(shí)例化一個(gè)類時(shí),先從本文件里找,找不到再找spl_autoload_register注冊(cè)的函數(shù)里的方法去加載,再找不到就會(huì)調(diào)用默認(rèn)的__autoload()?