(PHP 5 >= 5.1.2, PHP 7, PECL xmlwriter >= 0.1.0)
XMLWriter::startDocument -- xmlwriter_start_document — Crée un document
Style orienté objet
$version = 1.0
[, string $encoding = NULL
[, string $standalone
]]] ) : boolStyle procédural
$xmlwriter
[, string $version = 1.0
[, string $encoding = NULL
[, string $standalone
]]] ) : boolCommence un document.
xmlwriterUniquement pour les appels procéduraux. La ressource XMLWriter qui a été modifiée. Cette ressource provient d'un appel à xmlwriter_open_uri() ou xmlwriter_open_memory().
versionLe numéro de version du document dans la déclaration XML.
encodingL'encodage du document dans la déclaration XML.
standaloneyes ou no.
Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.