Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Errors
Exceptions
Generators
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Filesystem Security
Database Security
Error Reporting
Using Register Globals
User Submitted Data
Magic Quotes
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Safe Mode
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
Credit Card Processing
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
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
Windows 支持改变 »
« 不向下兼容的变化
PHP 手册
附录
从 PHP 5.2.x 移植到 PHP 5.3.x
Change language:
English
Brazilian Portuguese
Chinese (Simplified)
French
German
Japanese
Korean
Romanian
Russian
Spanish
Turkish
Other
Edit
Report a Bug
新特性
PHP 5.3.0 提供了广泛的新特性:
添加了
命名空间
的支持.
添加了
静态晚绑定
支持.
添加了
跳标签
支持.
添加了原生的
闭包
(Lambda/匿名函数)支持.
新增了两个魔术方法,
__callStatic
和
__invoke
.
添加了
Nowdoc
语法支持, 类似于
Heredoc
语法, 但是包含单引号.
使用
Heredoc
来初始化静态变量和类属性/常量变为可能.
可使用双引号声明
Heredoc
, 补充了
Nowdoc
语法.
可在类外部使用
const
关键词声明
常量
.
三元运算
操作符有了简写形式:
?:
.
HTTP 流包裹器将从 200 到 399 全部的状态码都视为成功。
动态访问静态方法变为可能.
异常
可以被内嵌.
新增了循环引用的垃圾回收器并且默认是开启的.
mail()
现在支持邮件发送日志. (注意: 仅支持通过该函数发送的邮件.)
add a note
User Contributed Notes
There are no user contributed notes for this page.