Dutch PHP Conference 2025 - Call For Papers

XMLWriter::outputMemory

xmlwriter_output_memory

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

XMLWriter::outputMemory -- xmlwriter_output_memoryReturns current buffer

Опис

Об'єктно-орієнтований стиль

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

Процедурний стиль

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

Returns the current buffer.

Параметри

writer

Тільки для процедурних викликів. Примірник XMLWriter, що буде оброблятися. Цей об'єкт повертається функцією xmlwriter_open_uri() або xmlwriter_open_memory().

flush

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

Значення, що повертаються

Returns the current buffer as a string.

Журнал змін

Версія Опис
8.0.0 Тепер writer має бути примірником XMLWriter. Раніше очікувався resource.

Прогляньте також

add a note

User Contributed Notes

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