xmlwriter_output_memory()
function xmlwriter_output_memory(mixed $writer, bool $flush = true): string
Returns the buffered output of a memory writer.
Parameters:
$writer(mixed)$flush(bool), defaulttrue, optional
Returns: string
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_output_memory.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xmlwriter_output_memory is implemented in the compiler, see the internals page.