The DOMParentNode interface (PHP 8) 接口摘要 interface DOMParentNode { /* 方法 */ public append(DOMNode|string ...$nodes): void public prepend(DOMNode|string ...$nodes): void public replaceChildren(DOMNode|string ...$nodes): void } 目录DOMParentNode::append — Appends nodes after the last child nodeDOMParentNode::prepend — Prepends nodes before the first child nodeDOMParentNode::replaceChildren — Replace children in node