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
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
Dealing with XForms
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 手册
附录
从 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
新增的方法
5.3.0 中新增了若干方法:
日期/时间
:
DateTime::add()
- 向一个
DateTime
对象加上若干天,月,年,小时,分钟和秒.
DateTime::createFromFormat()
- 根据给定的格式,返回一个新的格式化的
DateTime
对象.
DateTime::diff()
- 返回两个
DateTime
对象的不同之处.
DateTime::getLastErrors()
- 返回最后的日期/时间处理中的警告和错误。
DateTime::sub()
- 从
DateTime
对象中减去若干天,月,年,小时,分钟和秒.
异常(Exception)
:
Exception::getPrevious()
- 获取前一个异常.
DOM
:
DOMNode::getLineNo()
- 返回解析节点的行数.
PDO_FIREBIRD
:
PDO::setAttribute()
- 设置属性.
反射(Reflection)
:
ReflectionClass::getNamespaceName()
- 返回类定义所在命名空间的的名称.
ReflectionClass::getShortName()
- 返回类的短名称(没有命名空间部分).
ReflectionClass::inNamespace()
- 返回类是否定义于一个命名空间.
ReflectionFunction::getNamespaceName()
- 返回函数定义所在命名空间的名字.
ReflectionFunction::getShortName()
- 返回函数的段名称(没有命名空间部分).
ReflectionFunction::inNamespace()
- 返回函数在一个命名空间中是否被定义.
ReflectionProperty::setAccessible()
- 设置是否可以请求非 public 属性.
SPL
:
SplObjectStorage::addAll()
- 从另一个 SplObjectStorage 对象中新增全部元素.
SplObjectStorage::removeAll()
- 从另一个 SplObjectStorage 对象中移除全部元素.
XSL
:
XSLTProcessor::setProfiling()
- 设置概况输出文件.
add a note
User Contributed Notes
There are no user contributed notes for this page.