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.

锟轿硷拷