XMLWriter::startDocument
xmlwriter_start_document
(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)
XMLWriter::startDocument -- xmlwriter_start_document — Crée un document
Description
Style orienté objet
bool XMLWriter::startDocument
([ string
$version = 1.0
[, string $encoding = NULL
[, string $standalone
]]] )Style procédural
bool xmlwriter_start_document
( resource
$xmlwriter
[, string $version = 1.0
[, string $encoding = NULL
[, string $standalone
]]] )Commence un document.
Liste de paramètres
-
xmlwriter -
Uniquement 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().
-
version -
Le numéro de version du document dans la déclaration XML.
-
encoding -
L'encodage du document dans la déclaration XML.
-
standalone -
yes ou no.
Valeurs de retour
Cette fonction retourne TRUE en cas de
succès ou FALSE si une erreur survient.
