DOMComment::__construct Yeni bir DOMComment nesnesi oluşturur &reftitle.description; public DOMComment::__construct stringdata"" Yeni bir DOMComment nesnesi oluşturur. Nesne bu haliyle bir belgeye eklenebilir, fakat belge ile ilişkilendirilinceye kadar yeni bir düğüm eklenemez. Yazılabilir bir düğüm oluşturmak için DOMDocument::createComment yöntemini kullanın. &reftitle.parameters; data Açıklama değeri. &reftitle.examples; - Yeni bir <classname>DOMComment</classname> oluşturmak appendChild(new DOMElement('root')); $comment = $element->appendChild(new DOMComment('bir açıklama')); echo $dom->saveXML(); ?> ]]> &example.outputs; ]]> &reftitle.seealso; DOMDocument::createComment