php8.5
Home/ Manual/ dom / domdocument/ DOMDocument::createCDATASection

DOMDocument::createCDATASection

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Create new cdata node

Description

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

This function creates a new instance of class DOMCDATASection. Inserted

Parameters

data

The content of the cdata.

Return Values

The new DOMCDATASection or false if an error occurred.

See Also

  • DOMNode::appendChild
  • DOMDocument::createAttribute
  • DOMDocument::createAttributeNS
  • DOMDocument::createComment
  • DOMDocument::createDocumentFragment
  • DOMDocument::createElement
  • DOMDocument::createElementNS
  • DOMDocument::createEntityReference
  • DOMDocument::createProcessingInstruction
  • DOMDocument::createTextNode

Source: reference/dom/domdocument/createcdatasection.xml · from the official PHP manual (php/doc-en)