DOMCdataSection::__construct
Constructs a new DOMCdataSection object
&reftitle.description;
public DOMCdataSection::__construct
stringvalue
Constructs a new CDATA node. This works like the DOMText
class.
&reftitle.parameters;
value
The value of the CDATA node. If not supplied, an empty CDATA node is created.
&reftitle.examples;
Creating a new DOMCdataSection object
appendChild(new DOMElement('root'));
$text = $element->appendChild(new DOMCdataSection('root value'));
echo $dom->saveXML();
?>
]]>
&example.outputs;
]]>
&reftitle.seealso;
DOMText::__construct
DOMDocument::createTextNode