SPL is a collection of classes and interfaces providing an API for built-in PHP functions, allowing developers to write fully object oriented code with standard tools, using PHP in a
much more elegant way.
PHP 标准库(SPL)是用于解决标准问题(standard problems)的一组接口与类的集合。
SPL 提供了一套标准的数据结构、遍历对象的迭代器、异常,以及一些处理文件的类,它还提供了一系列的函数,比如 spl_autoload_register()。
SPL is a collection of classes and interfaces providing an API for built-in PHP functions, allowing developers to write fully object oriented code with standard tools, using PHP in a
much more elegant way.
SPL provides a standard set of interfaces for PHP5. The aim of SPL is to implement some efficient data access interfaces and classes for PHP. Functionally it is designed to traverse aggregate structures (anything you want to loop over). These may include arrays, database result sets, xml trees, directory listings or any list at all. Currently SPL deals with Iterators.