← All docs
xmlwriter_flush()
Flushes the buffer: the buffered string for a memory writer, the byte count written for a URI writer.
xmlwriter_flush()
function xmlwriter_flush(mixed $writer, bool $empty = true): mixed
Flushes the buffer: the buffered string for a memory writer, the byte count written for a URI writer.
Parameters:
$writer(mixed)$empty(bool), defaulttrue, optional
Returns: mixed
Availability
- Compiled (AOT): supported through an injected elephc-PHP prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/xml/xmlwriter_flush.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xmlwriter_flush is implemented in the compiler, see the internals page.