PHP. Руководство по PHP. 2005
DOMNode->insertBefore()
HREF="function.dom-domnode-haschildnodes.html"> HREF="function.dom-domnode-issamenode.html"> Пред.
DOMNode->insertBefore()
(no version information, might be only in CVS)DOMNode->insertBefore() -- Adds a new child before a reference node
Описание
class DOMNode {DOMNode insertBefore (DOMNode newnode [, DOMNode refnode])
}
This function inserts a new node right before the reference node. If you plan to do further modifications on the appended child you must use the returned node.