« Dom\ChildNode::before
Dom\ChildNode::replaceWith »
PHP Manual
Dom\ChildNode
Removes the node
Dom\ChildNode::remove
(PHP 8 >= 8.4.0)
Dom\ChildNode::remove
—
Removes the node
说明
public
Dom\ChildNode::remove
():
void
Removes the node.
参数
此函数没有参数。
返回值
没有返回值。
参见
Dom\ChildNode::after()
- Adds nodes after the node
Dom\ChildNode::before()
- Adds nodes before the node
Dom\ChildNode::replaceWith()
- Replaces the node with new nodes
Dom\Node::removeChild()