XMLWriter::writeCdata

PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0
XMLWriter::writeCdata - Write full CDATA tag
Manual
Code Examples

Example #1 Basic xmlwriter_write_cdata Usage

Result: <mydoc> <myele> <mycdataelement><![CDATA[text for inclusion as CData]‚Äč]></mycdataelement> </myele> </mydoc>
PHP Version: