PHP Manual
Function Reference
XML Manipulation
DOM
Introduction
Installing/Configuring
Predefined Constants
Examples
DOMAttr
DOMCdataSection
DOMCharacterData
DOMChildNode
DOMComment
DOMDocument
DOMDocumentFragment
DOMDocumentType
DOMElement
DOMEntity
DOMEntityReference
DOMException
DOMImplementation
DOMNamedNodeMap
DOMNameSpaceNode
DOMNode
DOMNodeList
DOMNotation
DOMParentNode
DOMProcessingInstruction
DOMText
DOMXPath
Dom\AdjacentPosition
Dom\Attr
Dom\CDATASection
Dom\CharacterData
Dom\ChildNode
Dom\Comment
Dom\Document
Dom\DocumentFragment
Dom\DocumentType
Dom\DtdNamedNodeMap
Dom\Element
Dom\Entity
Dom\EntityReference
Dom\HTMLCollection
Dom\HTMLDocument
Dom\HTMLElement
Dom\Implementation
Dom\NamedNodeMap
Dom\NamespaceInfo
Dom\Node
Dom\NodeList
Dom\Notation
Dom\ParentNode
Dom\ProcessingInstruction
Dom\Text
Dom\TokenList
Dom\XMLDocument
Dom\XPath
DOM Functions
Dom\CharacterData::substringData
Dom\ChildNode::after
DOM
PHP Manual
The Dom\ChildNode interface
Introduction
This is the modern, spec-compliant equivalent of
DOMChildNode
.
Interface synopsis
Dom\ChildNode
/* Methods */
public
void
Dom\ChildNode::after
(
Dom\Node
string
...$nodes
)
public
void
Dom\ChildNode::before
(
Dom\Node
string
...$nodes
)
public
void
Dom\ChildNode::remove
()
public
void
Dom\ChildNode::replaceWith
(
Dom\Node
string
...$nodes
)
Table of Contents
Dom\ChildNode::after
— Adds nodes after the node
Dom\ChildNode::before
— Adds nodes before the node
Dom\ChildNode::remove
— Removes the node
Dom\ChildNode::replaceWith
— Replaces the node with new nodes