DOMDocument->createComment()とは? わかりやすく解説

Weblio 辞書 > コンピュータ > PHP関数リファレンス > DOMDocument->createComment()の意味・解説 

DOMDocument->createComment()

(No version information available, might be only in CVS)
DOMDocument->createComment() — 新しい comment ノードを作成する

説明

class DOMDocument {
DOMComment createComment ( string data )
} この関数は、DOMComment クラスの 新しいインスタンスを作成します。このノードは、DOMNode->appendChild() などで 挿入されない限り、ドキュメント内に現われません。

パラメータ

data
コメントの内容。

返り値

新しい DOMComment、あるいはエラーが発生した場合は FALSE を返します。

参考

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


DomDocument->create_comment

(No version information available, might be only in CVS)
DomDocument->create_comment — 新規コメントノードを作成する

説明

domcomment DomDocument->create_comment ( string content )
この関数は DomComment クラスの新規インスタンスを返します。 コメントの内容は渡されたパラメータの値です。このノードは、domnode_append_child() などで挿入されない限り、ドキュメント内に現われません。
エラーが発生した場合、戻り値は FALSE です。
domnode_append_child(), domdocument_create_element(), domdocument_create_text(), domdocument_create_attribute(), domdocument_create_processing_instruction(), domdocument_create_entity_reference(), domnode_insert_before() も参照ください。



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「DOMDocument->createComment()」の関連用語

DOMDocument->createComment()のお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



DOMDocument->createComment()のページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
PHP Documentation GroupPHP Documentation Group
Copyright © 1997 - 2025 by the PHP Documentation Group.

©2025 GRAS Group, Inc.RSS