PHP マニュアル
前のページ |  | 次のページ

# DOMNode->insertBefore

(no version information, might be only in CVS)

DOMNode->insertBefore -- Adds new child at the end of the children

## 説明

DOMNode DOMNode->insertBefore ( DOMNode newnode [, DOMNode refnode])

This function inserts the new node newnode right before the node refnode. The return value is the inserted node. If you plan to do further modifications on the appended child you must use the returned node. If refnode is not supplied then newnode is appended to the children.

Throws DOMException if node cannot be inserted.

前のページ | ホーム | 次のページ
DOMNode->hasChildNodes | 上に戻る | DOMNode->isSameNode