The DOMDocumentFragment class
(PHP 5, PHP 7, PHP 8)
Class synopsis
/* Inherited constants */
/* Properties */
/* Inherited properties */
/* Methods */
public __construct()
/* Inherited methods */
public DOMNode::C14N(
bool
bool
?array
?array
): string|false
}bool
$exclusive = false,bool
$withComments = false,?array
$xpath = null,?array
$nsPrefixes = null): string|false
Properties
Changelog
| Version | Description |
|---|---|
| 8.0.0 | The firstElementChild, lastElementChild, and childElementCount properties have been added. |
| 8.0.0 | DOMDocumentFragment implements DOMParentNode now. |
Table of Contents
- DOMDocumentFragment::append — Appends nodes after the last child node
- DOMDocumentFragment::appendXML — Append raw XML data
- DOMDocumentFragment::__construct — Constructs a DOMDocumentFragment object
- DOMDocumentFragment::prepend — Prepends nodes before the first child node
- DOMDocumentFragment::replaceChildren — Replace children in fragment
↑ and ↓ to navigate • Enter to select • Esc to close • / to open