PHP 手冊
上一頁 |  | 下一頁

# DOMNode->replaceChild

(no version information, might be only in CVS)

DOMNode->replaceChild -- Replaces a child

## Description

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

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