(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 1.0.0)
XMLWriter::flush -- xmlwriter_flush — Vacía el búfer actual
Estilo orientado a objetos
Estilo por procedimientos
Vacía el buffer actual.
xmlwriterSólo para llamadas por procedimientos. 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 not. Default is true.
Si se abrió el documento en memoria, ésta función devolverá el buffer XML generado, Además, si se usa URI, esta función va a escribir el buffer y devolver el número de bytes escritos.