← All docs

xmlwriter_output_memory()

Returns the buffered output of a memory writer.

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), default true, optional

Returns: string

Availability

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.