Fonctions XMLWriter
PHP Manual

XMLWriter::startDocument

(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)

XMLWriter::startDocumentCrée un document

Description

Style orienté objet

XMLWriter
bool startDocument ([ string $version [, string $encoding [, string $standalone ]]] )

Style procédural

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

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. Par défaut, ce paramètre vaut 1.0.

encoding

L'encodage du document dans la déclaration XML. NULL par défaut.

standalone

yes ou no.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.

Voir aussi


Fonctions XMLWriter
PHP Manual