DomNode->append_child()
DomNode->append_child - Adds a new child at the end of the children
Syntax
DOMNode DomNode->append_child (
DOMNode $newnode)
Arguments
- newnode - The node being appended. It can be created with e.g. DomDocument->create_element, DomDocument->create_text_nodeetc. or simply by using any other node. Note: You can not append a DOMAttributeusing this method. Use DomElement->set_attributeinstead.
Description
This functions appends a child to an existing list of children or creates a new list of children.
Version
PHP 4.1.0
Return value
Returns the appended node on success or FALSE on failure.