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()
- tidyNode tidyNode::getParent()() - Returns the parent node of the current node (Added in PHP 5.2.2)
- 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
English translation
You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.
Thank you in advance.
Document created the 30/01/2003, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/php-rf-migration52.methods.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.