DOMNode::appendChild

DOMNode::appendChild

(PHP 5, PHP 7)

DOMNode::appendChild Adds 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.