PHP 7.0.6 Released
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
PHP Manual
Appendices
Migrating from PHP 5.1.x to PHP 5.2.x
New Methods
New methods were introduced in 5.2.0:
dom
:
DOMDocument::registerNodeClass()
- Register extended class used to create base node type
DOMElement::setIDAttribute()
- Declares the attribute specified by name to be of type ID
DOMElement::setIDAttributeNode()
- Declares the attribute specified by node to be of type ID
DOMElement::setIDAttributeNS()
- Declares the attribute specified by local name and namespace URI to be of type ID
DOMNode::C14N()
([bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) - Canonicalize nodes to a string
DOMNode::C14NFile()
(string uri [, bool exclusive [, bool with_comments [, array xpath [, array ns_prefixes]]]]) - Canonicalize nodes to a file
DOMNode::getNodePath()
() - Gets an
xpath
for a node
soap
:
SoapServer::setObject()
(object obj) - Sets object which will handle SOAP requests
spl
:
int
ArrayObject::asort()
(void) - Sort the entries by values
int
ArrayObject::ksort()
(void) - Sort the entries by key
int
ArrayObject::natcasesort()
(void) - Sort the entries by key using case insensitive "natural order" algorithm.
int
ArrayObject::natsort()
(void) - Sort the entries by values using "natural order" algorithm.
int
ArrayObject::uasort()
(callback cmp_function) - Sort the entries by values using a user defined function
int
ArrayObject::uksort()
(callback cmp_function) - Sort the entries by key using a user defined function.
ArrayIterator
AppendIterator::getArrayIterator()
() - Get access to inner
ArrayIterator
int
AppendIterator::getIteratorIndex()
() - Get index of iterator
bool
CachingIterator::getCache()
() - Return the cache
int
CachingIterator::getFlags()
() - Return the internal flags
bool
CachingIterator::offsetExists()
(mixed index) - Returns
TRUE
if the requested index exists
string
CachingIterator::offsetGet()
(mixed index) - Return the internal cache if used
void
CachingIterator::offsetSet()
(mixed index, mixed newval) - Set given index in cache
void
CachingIterator::offsetUnset()
(mixed index) - Unset given index in cache
void
CachingIterator::setFlags()
() - Set the internal flags
array("delimiter" =>, "enclosure" =>)
SplFileObject::getCsvControl()
(void) - Get the delimiter and enclosure character used in
fgetcsv()
void
SplFileObject::setCsvControl()
([string delimiter = ',' [, string enclosure = '"']]) - Set the delimiter and enclosure character used in
fgetcsv()
Tidy
tidyNode
tidyNode::getParent()
() - Returns the parent node of the current node (Added in PHP 5.2.2)
XMLReader
boolean
XMLReader::setSchema()
- Use W3C XSD schema to validate the document as it is processed. Activation is only possible before the first
XMLReader::read()
zip
:
ZipArchive::addEmptyDir()
() - Creates an empty directory in the archive
User Contributed Notes
There are no user contributed notes for this page.