Summary: Flush current buffer
PHP 5 >= 5.1.2Related methods: none
mixed xmlwriter_flush(bool $empty = true, resource $xmlwriter[, bool $empty = true])
Object oriented style
Flushes the current buffer.
If you opened the writer in memory, this function returns the generated XML buffer, Else, if using URI, this function will write the buffer and return the number of written bytes.
- bool $empty [ = true]: Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xmlwriter_open_uri() or xmlwriter_open_memory().
- resource $xmlwriter: Whether to empty the buffer or not. Default is
- bool $empty [ = true]: