Skip to content

老陈是一个普通的文艺二逼青年

For The Dream

php SPL库 —— 简介

Written by chen

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 函数
  • 文件处理
  • 其他

 

参考链接:

http://cn2.php.net/manual/zh/book.spl.php

http://www.ruanyifeng.com/blog/2008/07/php_spl_notes.html

PHP · php, spl

Copyright © 2022 老陈是一个普通的文艺二逼青年. 沪ICP备13044041号-1