PHP 手冊
上一頁 |  | 下一頁

# DOMCharacterData->deleteData

(no version information, might be only in CVS)

DOMCharacterData->deleteData -- Remove a range of characters from the node.

## Description

void DOMCharacterData->deleteData ( int offset, int count)

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

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

上一頁 | 最開頭 | 下一頁
DOMCharacterData->appendData | 上一層 | DOMCharacterData->insertData