(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)
XMLWriter::startDocument -- xmlwriter_start_document — Create document tag
Estilo orientado à objeto
$version
= "1.0"
, string|null $encoding
= null
, string|null $standalone
= null
) : boolEstilo procedural
$writer
, string|null $version
= "1.0"
, string|null $encoding
= null
, string|null $standalone
= null
) : boolStarts a document.
xmlwriter
Apenas para chamadas de procedimentos. O recurso XMLWriter resource que esta sendo modificado. Este recurso vem de uma chamada a xmlwriter_open_uri() ou xmlwriter_open_memory().
version
The version number of the document as part of the XML declaration.
encoding
The encoding of the document as part of the XML declaration.
standalone
yes
or no
.
Retorna true
em caso de sucesso ou false
em caso de falha.
Versão | Descrição |
---|---|
8.0.0 |
writer expects an XMLWriter
instance now; previously, a resource was expected.
|