Since: 8.0

interface DOMParentNode (View source)

Properties

DOMElement|null read-only $firstElementChild
DOMElement|null read-only $lastElementChild
int read-only $childElementCount

Methods

void
append(DOMNode|string|null ...$nodes)

Appends one or many nodes to the list of children behind the last child node.

void
prepend(DOMNode|string|null ...$nodes)

Prepends one or many nodes to the list of children before the first child node.

void
replaceChildren(...$nodes)

No description

Details

void append(DOMNode|string|null ...$nodes)

Since: 8.0

Appends one or many nodes to the list of children behind the last child node.

Parameters

DOMNode|string|null ...$nodes

Return Value

void

void prepend(DOMNode|string|null ...$nodes)

Since: 8.0

Prepends one or many nodes to the list of children before the first child node.

Parameters

DOMNode|string|null ...$nodes

Return Value

void

void replaceChildren(...$nodes)

Since: 8.3

No description

Parameters

...$nodes

Return Value

void