DOMDocument::createComment

(PHP 5, PHP 7)

DOMDocument::createCommentCreate new comment node

˵��

public DOMDocument::createComment ( string $data ) : DOMComment

This function creates a new instance of class DOMComment. �˽ڵ�������ĵ��У������������� DOMNode->appendChild() �Ⱥ�����������롣

����

data

The content of the comment.

����ֵ

The new DOMComment or FALSE if an error occurred.

�μ�