# The DOMChildNode interface

(PHP 8)

## Sinopsis de la Interfaz

interface DOMChildNode {
/* Métodos */
public after(DOMNode|string `...$nodes`): void
public before(DOMNode|string `...$nodes`): void
public remove(): void
public replaceWith(DOMNode|string `...$nodes`): void
}

## Tabla de contenidos

- DOMChildNode::after — Adds nodes after the node
- DOMChildNode::before — Adds nodes before the node
- DOMChildNode::remove — Removes the node
- DOMChildNode::replaceWith — Replaces the node with new nodes