DOMDocument->createComment()
(No version information available, might be only in CVS)
DOMDocument->createComment() — Create new comment node
설명
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()