DOMProcessingInstruction::__construct
DOMText::__construct
DOM
PHP Manual

# The DOMText class

## Introducción

The DOMText class inherits from DOMCharacterData and represents the textual content of a DOMElement or DOMAttr.

## Class synopsis

DOMText
DOMText extends DOMCharacterData {
/* Properties */
readonly public string $wholeText ;
/* Methods */
__construct ([ string `$value` ] )
bool isWhitespaceInElementContent ( void )
DOMText splitText ( int `$offset` )
/* Inherited methods */
void DOMCharacterData::appendData ( string `$data` )
void DOMCharacterData::deleteData ( int `$offset` , int `$count` )
void DOMCharacterData::insertData ( int `$offset` , string `$data` )
void DOMCharacterData::replaceData ( int `$offset` , int `$count` , string `$data` )
string DOMCharacterData::substringData ( int `$offset` , int `$count` )
DOMNode DOMNode::appendChild ( DOMNode `$newnode` )
DOMNode DOMNode::cloneNode ([ bool `$deep` ] )
bool DOMNode::hasAttributes ( void )
bool DOMNode::hasChildNodes ( void )
DOMNode DOMNode::insertBefore ( DOMNode `$newnode` [, DOMNode `$refnode` ] )
bool DOMNode::isDefaultNamespace ( string `$namespaceURI` )
bool DOMNode::isSameNode ( DOMNode `$node` )
bool DOMNode::isSupported ( string `$feature` , string `$version` )
string DOMNode::lookupNamespaceURI ( string `$prefix` )
string DOMNode::lookupPrefix ( string `$namespaceURI` )
void DOMNode::normalize ( void )
DOMNode DOMNode::removeChild ( DOMNode `$oldnode` )
DOMNode DOMNode::replaceChild ( DOMNode `$newnode` , DOMNode `$oldnode` )
}

## Propiedades

wholeText

  Holds all the text of logically-adjacent (not separated by Element, Comment or Processing Instruction) Text nodes.

## Table of Contents

- DOMText::__construct — Creates a new DOMText object
- DOMText::isWhitespaceInElementContent — Indicates whether this text node contains whitespace
- DOMText::splitText — Breaks this node into two nodes at the specified offset

DOMProcessingInstruction::__construct
DOMText::__construct
DOM
PHP Manual