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.

�μ�