XMLWRITER_START_DOCUMENT(3) 1 XMLWRITER_START_DOCUMENT(3)
XMLWriter::startDocument - Create document tag
Object oriented style
SYNOPSIS
bool XMLWriter::startDocument NULL ([string $version = 1.0], [string $encoding], [string $standalone])
DESCRIPTION
Procedural style
bool xmlwriter_start_document NULL (resource $xmlwriter, [string $version = 1.0], [string $encoding], [string $standalone])
Starts a document.
PARAMETERS
o $
xmlwriter -Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xml-
writer_open_uri(3) or xmlwriter_open_memory(3).
o $version
- The version number of the document as part of the XML declaration.
o $encoding
- The encoding of the document as part of the XML declaration.
o $standalone
- yes or no.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO
XMLWriter::endDocument.
PHP Documentation Group XMLWRITER_START_DOCUMENT(3)