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

# DOMNode->replaceChild

(no version information, might be only in CVS)

DOMNode->replaceChild -- Replaces a child

## 説明

DOMNode DOMNode->replaceChild ( DOMNode newnode, DOMNode oldnode)

This function replaces the child oldnode with the passed new node. If the new node is already a child it will not be added a second time. If the replacement succeeds the old node is returned.

Throws DOMException if node cannot be replaced.

前のページ | ホーム | 次のページ
DOMNode->removeChild | 上に戻る | DOMNodelist->item