# The DOMChildNode interface

(PHP 8)

## Interface synopsis

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

## Table of Contents

- 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

`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open