下载
文档
参与
帮助
全栈开发网
基金会
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
新函数 »
« PHP 7.0.x 弃用的功能
PHP 手册
附录
从 PHP 5.6.x 移植到 PHP 7.0.x
切换语言:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
变更的函数
PHP 核心
debug_zval_dump()
现在打印“int”替代“long”,打印“float”替代“double”
dirname()
增加了可选的第二个参数,
depth
,获取当前目录向上
depth
级父目录的名称。
getrusage()
现在支持 Windows。
mktime()
和
gmmktime()
函数不再接受
is_dst
参数。
preg_replace()
函数不再支持“\e”(
PREG_REPLACE_EVAL
)。应当使用
preg_replace_callback()
替代。
setlocale()
函数不再接受
category
传入字符串。应当使用
LC_
*
常量。
exec()
、
system()
和
passthru()
函数对 NULL 增加了保护。
shmop_open()
现在返回 resource 而非 int,返回的 resource 可以传给
shmop_size()
、
shmop_write()
、
shmop_read()
、
shmop_close()
和
shmop_delete()
。
substr()
现在当 start 的值与 string 的长度相同时将返回空字符串。
xml_parser_free()
不再足以释放解析器资源,如果它引用了对象,而这个对象又引用了那个解析器资源。在这种情况下,需要额外地取消设置 $parser。
发现了问题?
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without selection to search using Google