|
DOMNode::appendChildAdds new child at the end of the children Beschreibung
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. Parameter-Liste
RückgabewerteThe node added. Fehler/Exceptions
BeispieleThe following example will add a new element node to a fresh document. Beispiel #1 Adding a child
<?phpSiehe auch
|