DOMDocument
PHP Manual

DOMDocument::createTextNode

(PHP 5)

DOMDocument::createTextNodeCreate new text node

Описание

DOMText DOMDocument::createTextNode ( string $content )

This function creates a new instance of class DOMText. Този възел няма да се показва в документа докато не бъде вмъкнат с DOMNode->appendChild().

Параметри

content

The content of the text.

Връщани стойности

The new DOMText or FALSE if an error occured.

Вж. също


DOMDocument
PHP Manual