DOMDocument->createComment()

(no version information, might be only in CVS)

DOMDocument->createComment() -- Create new comment node

説明

class DOMDocument {

DOMComment createComment ( string data )

}

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

以下も参照ください

DOMNode->appendChild()
DOMDocument->createAttribute()
DOMDocument->createAttributeNS()
DOMDocument->createCDATASection()
DOMDocument->createDocumentFragment()
DOMDocument->createElement()
DOMDocument->createElementNS()
DOMDocument->createEntityReference()
DOMDocument->createProcessingInstruction()
DOMDocument->createTextNode()