Manual do PHP
Anterior |  | Próxima

# DOMCharacterData->replaceData

(no version information, might be only in CVS)

DOMCharacterData->replaceData -- Replace a substring within the DOMCharacterData node.

## Description

void DOMCharacterData->replaceData ( int offset, int count, string data)

Replace count characters starting from position offset with data. If the sum of offset and count exceeds the length, then all characters to the end of the data are replaced.

Throws DOMExcpetion if offset is negative or greater than the number of characters in data, or if count is negative.

Anterior | Principal | Próxima
DOMCharacterData->insertData | Acima | DOMCharacterData->substringData