W3cubDocs

/PHP

The Dom\ChildNode interface

Introduction

(PHP 8 >= 8.4.0)

This is the modern, spec-compliant equivalent of DOMChildNode.

Interface synopsis

interface Dom\ChildNode {
/* Methods */
public after(Dom\Node|string ...$nodes): void
public before(Dom\Node|string ...$nodes): void
public remove(): void
public replaceWith(Dom\Node|string ...$nodes): void
}

Table of Contents

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/class.dom-childnode.php