下载
文档
参与
帮助
全栈开发网
基金会
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
GeoIP »
« SyncSharedMemory::write
PHP Manual
Function Reference
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
Other Basic Extensions
GeoIP
— Geo IP Location
Introduction
Installing/Configuring
Predefined Constants
GeoIP Functions
FANN
— FANN (Fast Artificial Neural Network)
Introduction
Installing/Configuring
Predefined Constants
Examples
Fann Functions
FANNConnection
— The FANNConnection class
Igbinary
Introduction
Installing/Configuring
Igbinary Functions
JSON
— JavaScript Object Notation
Introduction
Installing/Configuring
Predefined Constants
JsonException
— The JsonException class
JsonSerializable
— The JsonSerializable interface
JSON Functions
Simdjson
Introduction
Installing/Configuring
Predefined Constants
Simdjson Functions
SimdJsonException
— The SimdJsonException class
SimdJsonValueError
— The SimdJsonValueError class
Lua
Introduction
Installing/Configuring
Lua
— The Lua class
LuaClosure
— The LuaClosure class
LuaSandbox
Introduction
Installing/Configuring
Differences from Standard Lua
Examples
LuaSandbox
— The LuaSandbox class
LuaSandboxFunction
— The LuaSandboxFunction class
LuaSandboxError
— The LuaSandboxError class
LuaSandboxErrorError
— The LuaSandboxErrorError class
LuaSandboxFatalError
— The LuaSandboxFatalError class
LuaSandboxMemoryError
— The LuaSandboxMemoryError class
LuaSandboxRuntimeError
— The LuaSandboxRuntimeError class
LuaSandboxSyntaxError
— The LuaSandboxSyntaxError class
LuaSandboxTimeoutError
— The LuaSandboxTimeoutError class
Misc.
— Miscellaneous Functions
Introduction
Installing/Configuring
Predefined Constants
Misc. Functions
Changelog
Random
— Random Number Generators and Functions Related to Randomness
Introduction
Predefined Constants
Examples
Random Functions
Random\Randomizer
— The Random\Randomizer class
Random\IntervalBoundary
— The Random\IntervalBoundary Enum
Random\Engine
— The Random\Engine interface
Random\CryptoSafeEngine
— The Random\CryptoSafeEngine interface
Random\Engine\Secure
— The Random\Engine\Secure class
Random\Engine\Mt19937
— The Random\Engine\Mt19937 class
Random\Engine\PcgOneseq128XslRr64
— The Random\Engine\PcgOneseq128XslRr64 class
Random\Engine\Xoshiro256StarStar
— The Random\Engine\Xoshiro256StarStar class
Random\RandomError
— The Random\RandomError class
Random\BrokenRandomEngineError
— The Random\BrokenRandomEngineError class
Random\RandomException
— The Random\RandomException class
Seaslog
Introduction
Installing/Configuring
Predefined Constants
Examples
Seaslog Functions
SeasLog
— The SeasLog class
SPL
— Standard PHP Library (SPL)
Interfaces
Datastructures
Exceptions
Iterators
File Handling
SPL Functions
Streams
Introduction
Installing/Configuring
Predefined Constants
Stream Filters
Stream Contexts
Stream Errors
Examples
php_user_filter
— The php_user_filter class
streamWrapper
— The streamWrapper class
Stream Functions
Swoole
Introduction
Installing/Configuring
Predefined Constants
Swoole Functions
Swoole\Async
— The Swoole\Async class
Swoole\Atomic
— The Swoole\Atomic class
Swoole\Buffer
— The Swoole\Buffer class
Swoole\Channel
— The Swoole\Channel class
Swoole\Client
— The Swoole\Client class
Swoole\Connection\Iterator
— The Swoole\Connection\Iterator class
Swoole\Coroutine
— The Swoole\Coroutine class
Swoole\Event
— The Swoole\Event class
Swoole\Exception
— The Swoole\Exception class
Swoole\Http\Client
— The Swoole\Http\Client class
Swoole\Http\Request
— The Swoole\Http\Request class
Swoole\Http\Response
— The Swoole\Http\Response class
Swoole\Http\Server
— The Swoole\Http\Server class
Swoole\Lock
— The Swoole\Lock class
Swoole\Mmap
— The Swoole\Mmap class
Swoole\MySQL
— The Swoole\MySQL class
Swoole\MySQL\Exception
— The Swoole\MySQL\Exception class
Swoole\Process
— The Swoole\Process class
Swoole\Redis\Server
— The Swoole\Redis\Server class
Swoole\Serialize
— The Swoole\Serialize class
Swoole\Server
— The Swoole\Server class
Swoole\Table
— The Swoole\Table class
Swoole\Timer
— The Swoole\Timer class
Swoole\WebSocket\Frame
— The Swoole\WebSocket\Frame class
Swoole\WebSocket\Server
— The Swoole\WebSocket\Server class
Tidy
Introduction
Installing/Configuring
Predefined Constants
Examples
tidy
— The tidy class
tidyNode
— The tidyNode class
Tidy Functions
Tokenizer
Introduction
Installing/Configuring
Predefined Constants
Examples
PhpToken
— The PhpToken class
Tokenizer Functions
URLs
Introduction
Predefined Constants
URL Functions
V8js
— V8 Javascript Engine Integration
Introduction
Installing/Configuring
Examples
V8Js
— The V8Js class
V8JsException
— The V8JsException class
Yaml
— YAML Data Serialization
Introduction
Installing/Configuring
Predefined Constants
Examples
Callbacks
Yaml Functions
Yaf
— Yet Another Framework
Introduction
Installing/Configuring
Predefined Constants
Examples
Application Configuration
Yaf_Application
— The Yaf_Application class
Yaf_Bootstrap_Abstract
— The Yaf_Bootstrap_Abstract class
Yaf_Dispatcher
— The Yaf_Dispatcher class
Yaf_Config_Abstract
— The Yaf_Config_Abstract class
Yaf_Config_Ini
— The Yaf_Config_Ini class
Yaf_Config_Simple
— The Yaf_Config_Simple class
Yaf_Controller_Abstract
— The Yaf_Controller_Abstract class
Yaf_Action_Abstract
— The Yaf_Action_Abstract class
Yaf_View_Interface
— The Yaf_View_Interface class
Yaf_View_Simple
— The Yaf_View_Simple class
Yaf_Loader
— The Yaf_Loader class
Yaf_Plugin_Abstract
— The Yaf_Plugin_Abstract class
Yaf_Registry
— The Yaf_Registry class
Yaf_Request_Abstract
— The Yaf_Request_Abstract class
Yaf_Request_Http
— The Yaf_Request_Http class
Yaf_Request_Simple
— The Yaf_Request_Simple class
Yaf_Response_Abstract
— The Yaf_Response_Abstract class
Yaf_Route_Interface
— The Yaf_Route_Interface class
Yaf_Route_Map
— The Yaf_Route_Map class
Yaf_Route_Regex
— The Yaf_Route_Regex class
Yaf_Route_Rewrite
— The Yaf_Route_Rewrite class
Yaf_Router
— The Yaf_Router class
Yaf_Route_Simple
— The Yaf_Route_Simple class
Yaf_Route_Static
— The Yaf_Route_Static class
Yaf_Route_Supervar
— The Yaf_Route_Supervar class
Yaf_Session
— The Yaf_Session class
Yaf_Exception
— The Yaf_Exception class
Yaf_Exception_TypeError
— The Yaf_Exception_TypeError class
Yaf_Exception_StartupError
— The Yaf_Exception_StartupError class
Yaf_Exception_DispatchFailed
— The Yaf_Exception_DispatchFailed class
Yaf_Exception_RouterFailed
— The Yaf_Exception_RouterFailed class
Yaf_Exception_LoadFailed
— The Yaf_Exception_LoadFailed class
Yaf_Exception_LoadFailed_Module
— The Yaf_Exception_LoadFailed_Module class
Yaf_Exception_LoadFailed_Controller
— The Yaf_Exception_LoadFailed_Controller class
Yaf_Exception_LoadFailed_Action
— The Yaf_Exception_LoadFailed_Action class
Yaf_Exception_LoadFailed_View
— The Yaf_Exception_LoadFailed_View class
Yaconf
Introduction
Installing/Configuring
Yaconf
— The Yaconf class
Taint
Introduction
Installing/Configuring
More Details
Taint Functions
Data Structures
Introduction
Installing/Configuring
Examples
Ds\Collection
— The Collection interface
Ds\Hashable
— The Hashable interface
Ds\Sequence
— The Sequence interface
Ds\Vector
— The Vector class
Ds\Deque
— The Deque class
Ds\Map
— The Map class
Ds\Pair
— The Pair class
Ds\Set
— The Set class
Ds\Stack
— The Stack class
Ds\Queue
— The Queue class
Ds\PriorityQueue
— The PriorityQueue class
var_representation
Introduction
Installing/Configuring
Predefined Constants
var_representation Functions
Found A Problem?
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without selection to search using Google