DOMParentNode::append
PHP function
Edit on GitHub ✎
(PHP 8)
Appends nodes after the last child node
Description
DOMParentNode::append(DOMNode|string ...$nodes): void
Appends one or many nodes to the list of children after the last child node.
Parameters
nodesThe nodes to append. Strings are automatically converted to text nodes.
Return Values
Void
Errors/Exceptions
Changelog
| Version | Description |
|---|---|
| 8.3.0 | Calling this method on a node without an owner document now works. Previous_hierarchy_exception |
See Also
DOMParentNode::prepend