DOMChildNode::before
(PHP 8)
DOMChildNode::before — Adds nodes before the node
說明
Adds the passed nodes
before the node.
參數
-
nodes
-
Nodes to be added before the node.
返回值
沒有返回值。
參見
- DOMChildNode::after() - Adds nodes after the node
- DOMChildNode::remove() - Removes the node
- DOMChildNode::replaceWith() - Replaces the node with new nodes