Home > PHP > Function > XMLWriter > XMLWriter::outputMemory()

XMLWriter::outputMemory()

XMLWriter::outputMemory - Returns current buffer

Syntax

string XMLWriter::outputMemory (bool $flush, resource $xmlwriter, bool $flush, bool $flush, resource $xmlwriter, bool $flush)

Arguments

  • flush - Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xmlwriter_open_uri() or xmlwriter_open_memory().
  • xmlwriter - Whether to flush the output buffer or no. Default is TRUE.
  • flush
  • flush - Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xmlwriter_open_uri() or xmlwriter_open_memory().
  • xmlwriter - Whether to flush the output buffer or no. Default is TRUE.
  • flush

Description

Object oriented style

Version

PHP 5.1.2, PECL xmlwriter >= 0.1.0

Return value

Returns the current buffer as a string.