PHP
XML

XMLWriter::startCdata

XMLWriter::startCdata

xmlwriter_start_cdata

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

XMLWriter :: startCdata - xmlwriter_start_cdata - 创建启动CDATA标签

描述

面向对象的样式

bool XMLWriter::startCdata ( void )

程序样式

bool xmlwriter_start_cdata ( resource $xmlwriter )

启动CDATA。

参数

`xmlwriter`

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

返回值

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

扩展内容

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

  • XMLWriter :: writeCdata() - 写入完整的CDATA标签

← XMLWriter::startAttribute

XMLWriter::startComment →