XMLWriter Funciones
PHP Manual

XMLWriter::flush

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

XMLWriter::flushNivela el actual buffer

Descripción

Estilo orientado a objetos

mixed XMLWriter::flush ([ bool $empty ] )

Estilo por procesos

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

Nivela el actual buffer.

Parámetros

xmlwriter

Sólo para llamadas procedimentales. El resource XMLWriter que está siendo modificado. Este recurso proviene de una llamada a xmlwriter_open_uri() o xmlwriter_open_memory().

empty

Whether to empty the buffer or no. Default is TRUE.

Valores devueltos

Si se abrió el documento en memoria, ésta función devolverá el buffer XML generado, Además, si se usa URI, ésta función va a escribir el buffer y devolver el número de bytes escritos.


XMLWriter Funciones
PHP Manual