The DOMCharacterData class
(PHP 5, PHP 7, PHP 8)
Introduction
Represents nodes with character data. No nodes directly correspond to this class, but other nodes do inherit from it.
Class synopsis
/* Inherited constants */
/* Properties */
/* Inherited properties */
/* Methods */
/* 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 nextElementSibling and previousElementSibling properties have been added. |
| 8.0.0 | DOMCharacterData implements DOMChildNode now. |
Table of Contents
- DOMCharacterData::after — Adds nodes after the character data
- DOMCharacterData::appendData — Append the string to the end of the character data of the node
- DOMCharacterData::before — Adds nodes before the character data
- DOMCharacterData::deleteData — Remove a range of characters from the character data
- DOMCharacterData::insertData — Insert a string at the specified UTF-8 codepoint offset
- DOMCharacterData::remove — Removes the character data node
- DOMCharacterData::replaceData — Replace a substring within the character data
- DOMCharacterData::replaceWith — Replaces the character data with new nodes
- DOMCharacterData::substringData — Extracts a range of data from the character data
↑ and ↓ to navigate • Enter to select • Esc to close • / to open