XMLWriter::outputMemory

xmlwriter_output_memory

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

XMLWriter::outputMemory -- xmlwriter_output_memory — Devuelve el actual búfer

Descripción

Estilo orientado a objetos

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

Estilo procedimental

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

Devuelve el búfer actual.

Parámetros

writer

Únicamente para llamadas procedimentales. La instancia XMLWriter que es modificada. Este objeto proviene de una llamada a xmlwriter_open_uri() o xmlwriter_open_memory().

flush

Si se mantiene la salida del búfer o no. Por defecto es true.

Valores devueltos

Devuelve el búfer actual como una cadena.

Historial de cambios

Versión Descripción
8.0.0 writer ahora espera una instancia de XMLWriter anteriormente, se esperaba una resource.

Véase también

+add a note

User Contributed Notes

There are no user contributed notes for this page.