php8.5
Home/ Manual/ xmlwriter / xmlwriter/ XMLWriter::openMemory

XMLWriter::openMemory

PHP function Edit on GitHub ✎

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

Create new xmlwriter using memory for string output

Description

Oop

XMLWriter::openMemory(): bool

Procedural

xmlwriter_open_memory(): XMLWriter|false

Creates a new XMLWriter using memory for string output.

Parameters Parameters

Return Values

Oop: Success

Procedural: Returns a new XMLWriter for later use with the xmlwriter functions on success, Falseforfailure.

Changelog

VersionDescription
8.0.0This function returns now an XMLWriter instance on success. Previously, a Resource has been returned in this case.

See Also

  • XMLWriter::openUri

Source: reference/xmlwriter/xmlwriter/openmemory.xml · from the official PHP manual (php/doc-en)