Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<DOMDocument::createAttributeNSDOMDocument::createComment>
^DOMDocumentLast updated: Mon, 26 Oct 2026

DOMDocument::createCDATASection

(PHP 5, PHP 7, PHP 8)

DOMDocument::createCDATASection — Create new cdata node

Description

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

This function creates a new instance of class DOMCDATASection. This node will not show up in the document unless it is inserted with (e.g.) DOMNode::appendChild().

Parameters

data

The content of the cdata.

Return Values

The new DOMCDATASection or false if an error occurred.

See Also


<DOMDocument::createAttributeNSDOMDocument::createComment>
^DOMDocumentLast updated: Mon, 26 Oct 2026