DOMDocument::createCDATASection

(PHP 5, PHP 7, PHP 8)

DOMDocument::createCDATASectionCreate new cdata node

Beschreibung

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

This function creates a new instance of class DOMCDATASection. Dieser Knoten wird im Dokument erst dann angezeigt, wenn er mit (z. B.) DOMNode::appendChild() eingefügt wird.

Parameter-Liste

data

The content of the cdata.

Rückgabewerte

The new DOMCDATASection or false if an error occurred.

Siehe auch

To Top