PHP
XML

XMLWriter::writeCdata

XMLWriter::writeCdata

xmlwriter_write_cdata

(PHP 5 >= 5.1.2, PHP 7, PECL xmlwriter >= 0.1.0)

XMLWriter :: writeCdata - xmlwriter_write_cdata - 写入完整的CDATA标签

描述

面向对象的样式

bool XMLWriter::writeCdata ( string $content )

程序样式

bool xmlwriter_write_cdata ( resource $xmlwriter , string $content )

写一个完整的CDATA。

参数

`xmlwriter`

仅限于程序调用。正在修改的XMLWriter资源。此资源来自对xmlwriter_open_uri()或xmlwriter_open_memory()的调用。

content

CDATA的内容。

返回值

成功时返回TRUE或失败时返回FALSE

扩展内容

  • XMLWriter :: startCdata() - 创建启动CDATA标签

  • XMLWriter :: endCdata() - 结束当前CDATA

← XMLWriter::writeAttribute

XMLWriter::writeComment →