Downloads
Documentation
Get Involved
Help
Search docs
PHP 8.4.2 Released!
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Interfaces »
« SeasLog::warning
PHP 手册
函数参考
其它基本扩展
切换语言:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
PHP 标准库(SPL)
简介
标准 PHP 库(SPL)扩展定义了接口和类,用于解决常见问题。
该扩展提供了各种数据结构、通用异常、迭代器、使用面向对象
API
的文件系统类,以及实用函数。
Interfaces
OuterIterator
— The OuterIterator interface
RecursiveIterator
— The RecursiveIterator interface
SeekableIterator
— SeekableIterator 接口
SplObserver
— The SplObserver interface
SplSubject
— The SplSubject interface
Datastructures
SplDoublyLinkedList
— SplDoublyLinkedList 类
SplStack
— SplStack 类
SplQueue
— SplQueue 类
SplHeap
— The SplHeap class
SplMaxHeap
— The SplMaxHeap class
SplMinHeap
— The SplMinHeap class
SplPriorityQueue
— The SplPriorityQueue class
SplFixedArray
— The SplFixedArray class
ArrayObject
— The ArrayObject class
SplObjectStorage
— The SplObjectStorage class
Exceptions
BadFunctionCallException
— The BadFunctionCallException class
BadMethodCallException
— BadMethodCallException 类
DomainException
— The DomainException class
InvalidArgumentException
— The InvalidArgumentException class
LengthException
— The LengthException class
LogicException
— The LogicException class
OutOfBoundsException
— The OutOfBoundsException class
OutOfRangeException
— The OutOfRangeException class
OverflowException
— The OverflowException class
RangeException
— The RangeException class
RuntimeException
— The RuntimeException class
UnderflowException
— The UnderflowException class
UnexpectedValueException
— The UnexpectedValueException class
Iterators
AppendIterator
— AppendIterator 类
ArrayIterator
— ArrayIterator 类
CachingIterator
— CachingIterator 类
CallbackFilterIterator
— The CallbackFilterIterator class
DirectoryIterator
— The DirectoryIterator class
EmptyIterator
— The EmptyIterator class
FilesystemIterator
— The FilesystemIterator class
FilterIterator
— FilterIterator 类
GlobIterator
— GlobIterator 类
InfiniteIterator
— The InfiniteIterator class
IteratorIterator
— The IteratorIterator class
LimitIterator
— LimitIterator 类
MultipleIterator
— The MultipleIterator class
NoRewindIterator
— The NoRewindIterator class
ParentIterator
— The ParentIterator class
RecursiveArrayIterator
— The RecursiveArrayIterator class
RecursiveCachingIterator
— The RecursiveCachingIterator class
RecursiveCallbackFilterIterator
— The RecursiveCallbackFilterIterator class
RecursiveDirectoryIterator
— The RecursiveDirectoryIterator class
RecursiveFilterIterator
— The RecursiveFilterIterator class
RecursiveIteratorIterator
— The RecursiveIteratorIterator class
RecursiveRegexIterator
— The RecursiveRegexIterator class
RecursiveTreeIterator
— The RecursiveTreeIterator class
RegexIterator
— The RegexIterator class
File Handling
SplFileInfo
— The SplFileInfo class
SplFileObject
— SplFileObject 类
SplTempFileObject
— The SplTempFileObject class
SPL 函数
class_implements
— 返回指定的类或接口实现的所有接口
class_parents
— 返回指定类的父类
class_uses
— Return the traits used by the given class
iterator_apply
— 为迭代器中每个元素调用函数
iterator_count
— 计算迭代器中元素的个数
iterator_to_array
— 复制迭代器中的元素到数组
spl_autoload
— __autoload() 函数的默认实现
spl_autoload_call
— 尝试所有已注册的 __autoload() 函数来装载请求类
spl_autoload_extensions
— 注册并返回 spl_autoload 的默认文件扩展名
spl_autoload_functions
— 返回所有已注册的 __autoload() 函数
spl_autoload_register
— 注册指定的函数作为 __autoload 的实现
spl_autoload_unregister
— 注销已实现的 __autoload() 函数
spl_classes
— 返回所有可用的SPL类
spl_object_hash
— 返回指定对象的 hash id
spl_object_id
— Return the integer object handle for given object
发现了问题?
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without selection to search using Google