W3cubDocs

/PHP

XMLWriter::toMemory

(PHP 8 >= 8.4.0)

XMLWriter::toMemoryCreate new XMLWriter using memory for string output

Description

public static XMLWriter::toMemory(): static

Creates a new XMLWriter using memory for string output.

Parameters

This function has no parameters.

Return Values

Returns an XMLWriter.

See Also

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/xmlwriter.tomemory.php