1、什么是SPL?
SPL是Standard PHP Library(PHP标准库)的缩写。
根据官方定义,它是”a collection of interfaces and classes that are meant to solve standard problems”。但是,目前在使用中,SPL更多地被看作是一种使object(物体)模仿array(数组)行为的interfaces和classes。
2、SPL包括什么?
- 数据结构
- 迭代器
- 接口
- 异常
- SPL 函数
- 文件处理
- 其他
参考链接: