« DOMDocument::createAttributeNS
DOMDocument::createComment »

DOMDocument::createCDATASection

(PHP 5, PHP 7, PHP 8)

DOMDocument::createCDATASection — 新しい cdata ノードを作成する

説明

public function DOMDocument::createCDATASection(string $data): DOMCdataSection|false

この関数は、DOMCDATASection クラスの新しいインスタンスを作成します。このノードは、( DOMNode::appendChild() などで) 挿入されない限り、ドキュメント内にあらわれません。

パラメータ

data

cdata の内容。

戻り値

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

参考

関連キーワード:
DOMDocument   ノード   cdata   createCDATASection   createAttributeNS   createComment   DOMCDATASection   DOMNode   appendChild   属性   関連   空間   DOMCdataSection   インスタンス   挿入   ドキュメント   参考   最後   createAttribute   comment   createDocumentFragment   文書   createElement   createElementNS   createEntityReference
関連する関数・ページ:
domdocument.createcomment   domdocument.createdocumentfragment   domdocument.createattribute   domdocument.createtextnode   domdocument.createentityreference   domdocument.createprocessinginstruction