php8.5
Home/ Manual/ xmlwriter / xmlwriter/ XMLWriter::outputMemory

XMLWriter::outputMemory

PHP function Edit on GitHub ✎

(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)

Returns current buffer

Description

Oop

XMLWriter::outputMemory(bool $flush = true): string

Procedural

xmlwriter_output_memory(XMLWriter $writer, bool $flush = true): string

Returns the current buffer.

Parameters

flush

Whether to flush the output buffer or not. Default is true.

Return Values

Returns the current buffer as a string.

Changelog

VersionDescription

See Also

  • XMLWriter::flush

Source: reference/xmlwriter/xmlwriter/outputmemory.xml · from the official PHP manual (php/doc-en)