Forum und email

XMLWriter::flush

(PHP 5 >= 5.1.2, PECL xmlwriter:1.0-2.0.4)

XMLWriter::flush — Affiche le buffer courant

Description

Style orienté objet (méthode)

XMLWriter
mixed flush ([ bool $empty ] )

Style procédural

mixed xmlwriter_flush ( resource $xmlwriter [, bool $empty ] )

Affiche le buffer courant.

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().

empty

Si l'on doit vider le buffer ou non. Par défaut, ce paramètre vaut TRUE.

Valeurs de retour

Si vous aviez ouvert le gestionnaire d'écriture en mémoire, cette fonction retourne le buffer XML généré. Si vous utilisez une URI, cette fonction écrira le buffer et retournera le nombre d'octets écrits.