DOMParentNode::prepend

(PHP 8)

DOMParentNode::prependPrepends nodes before the first child node

說明

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

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

參數(shù)

nodes

The nodes to prepend.

返回值

沒有返回值。

參見