DOMDocument
PHP Manual

DOMDocument::createTextNode

(PHP 5, PHP 7)

DOMDocument::createTextNodeCreate new text node

说明

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

参见


DOMDocument
PHP Manual