PHP 8.5.0 Alpha 2 available for testing

XMLWriter::outputMemory

xmlwriter_output_memory

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

XMLWriter::outputMemory -- xmlwriter_output_memoryDevuelve el actual buffer

Descripción

Estilo orientado a objetos

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

Estilo procedimental

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

Devuelve el buffer 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 buffer o no. Por defecto es true.

Valores devueltos

Devuelve el buffer actual como un string.

Historial de cambios

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

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top