DOMChildNode::before
(PHP 8)
DOMChildNode::before — Adds nodes before the node
Description
Adds the passed nodes before the node.
Parameters
-
nodes -
Nodes to be added before the node.
Return Values
No value is returned.
See Also
- DOMChildNode::after() - Adds nodes after the node
- DOMChildNode::remove() - Removes the node
- DOMChildNode::replaceWith() - Replaces the node with new nodes

