DOMComment::__construct
新しい DOMComment オブジェクトを作成する
&reftitle.description;
public DOMComment::__construct
stringdata""
新しい DOMComment オブジェクトを作成します。
このオブジェクトは読み込み専用です。このオブジェクトをドキュメントに
追加することが可能ですが、ノードがドキュメントと関連付けられるまでは
ノードを追加することはできません。書き込み可能なノードを作成するには、
を使用します。
&reftitle.parameters;
data
コメントの値。
&reftitle.examples;
新しい DOMComment を作成する
appendChild(new DOMElement('root'));
$comment = $element->appendChild(new DOMComment('root comment'));
echo $dom->saveXML(); /* */
?>
]]>
&reftitle.seealso;
DOMDocument::createComment