PHP 手册
上一页 |  | 下一页

# XMLWriter::startDocument

(no version information, might be only in CVS)

XMLWriter::startDocument -- Create document tag

## 说明

Object oriented style:

class XMLWriter {
bool startDocument ( [string version [, string encoding [, string standalone]]] )
}

Procedural style:

bool xmlwriter_start_document ( resource xmlwriter [, string version [, string encoding [, string standalone]]] )

Starts a document.

## 参数

`xmlwriter`

  仅用于过程调用。resource 是被修改的 XMLWriter 资源。此资源来自对 xmlwriter_open_uri() 或 xmlwriter_open_memory() 的调用

`version`

  The version number of the document as part of the XML declaration. Defaults to `1.0`.

`encoding`

  The encoding of the document as part of the XML declaration. `NULL` by default.

`standalone`

  `yes` or `no`. `NULL` by default.

## 返回值

如果成功则返回 `TRUE`，失败则返回 `FALSE`。

## 参见

XMLWriter::endDocument

上一页 | 起始页 | 下一页
XMLWriter::startComment | 上一级 | XMLWriter::startDTDAttlist