|
DOMNode::appendChildAdds new child at the end of the children Description
public DOMNode DOMNode::appendChild
( DOMNode
$newnode
)This function appends a child to an existing list of children or creates a new list of children. The child can be created with e.g. DOMDocument::createElement, DOMDocument::createTextNode etc. or simply by using any other node. Parameters
Return ValuesThe node added. Errors/Exceptions
ExamplesThe following example will add a new element node to a fresh document. Example #1 Adding a child
<?php See Also
|