略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: DOMChildNode::replaceWith

2024-11-13

DOMChildNode::replaceWith

(PHP 8)

DOMChildNode::replaceWithReplaces the node with new nodes

说明

public DOMChildNode::replaceWith(DOMNode|string ...$nodes): void

Replaces the node with new nodes. A combination of DOMChildNode::remove() and DOMChildNode::append().

参数

nodes

The replacement nodes.

返回值

没有返回值。

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/domchildnode.replacewith.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3