Prepends nodes before the first child node

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.

參數

nodes

The nodes to prepend.

返回值

沒有返回值。

參見

Leave a Reply

Your email address will not be published. Required fields are marked *