DOMDocument::createTextNode

(PHP 5, PHP 7)

DOMDocument::createTextNodeCreate new text node

Descrição

public DOMDocument::createTextNode ( string $content ) : DOMText

This function creates a new instance of class DOMText. Este nó não será exibido no documento a não ser que ele seja inserido, por exemplo, com DOMNode->appendChild().

Parâmetros

content

The content of the text.

Valor Retornado

The new DOMText or FALSE if an error occurred.

Veja Também