php / 8.1.5 / domparentnode.prepend.html /

DOMParentNode::prepend

(PHP 8)

DOMParentNode::prependPrepends nodes before the first child node

Description

public DOMParentNode::prepend(DOMNode|string ...$nodes): void

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

Parameters

nodes

The nodes to prepend.

Return Values

No value is returned.

See Also

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/domparentnode.prepend.php