DOMDocument::createTextNode

(PHP 5, PHP 7)

DOMDocument::createTextNodeCreate new text node

说明

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

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 occurred.

参见