DOMDocument::createCDATASection
DOMDocument::createDocumentFragment
DOMDocument
PHP Manual

# DOMDocument::createComment

(PHP 5)

DOMDocument::createComment — Create new comment node

### 설명

DOMComment DOMDocument::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 - Adds new child at the end of the children
- DOMDocument::createAttribute - Create new attribute
- DOMDocument::createAttributeNS - Create new attribute node with an associated namespace
- DOMDocument::createCDATASection - Create new cdata node
- DOMDocument::createDocumentFragment - Create new document fragment
- DOMDocument::createElement - Create new element node
- DOMDocument::createElementNS - Create new element node with an associated namespace
- DOMDocument::createEntityReference - Create new entity reference node
- DOMDocument::createProcessingInstruction - Creates new PI node
- DOMDocument::createTextNode - Create new text node

DOMDocument::createCDATASection
DOMDocument::createDocumentFragment
DOMDocument
PHP Manual