XMLWRITER_FLUSH(3) 1 XMLWRITER_FLUSH(3)
XMLWriter::flush - Flush current buffer
Object oriented style
SYNOPSIS
mixed XMLWriter::flush ([bool $empty = true])
DESCRIPTION
Procedural style
mixed xmlwriter_flush (resource $xmlwriter, [bool $empty = true])
Flushes the current buffer.
PARAMETERS
o $
xmlwriter -Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xml-
writer_open_uri(3) or xmlwriter_open_memory(3).
o $empty
- Whether to empty the buffer or not. Default is TRUE.
RETURN VALUES
If you opened the writer in memory, this function returns the generated XML buffer, Else, if using URI, this function will write the buf-
fer and return the number of written bytes.
PHP Documentation Group XMLWRITER_FLUSH(3)