update pague now
PHP 8.4.17 Released!

XMLWriter::toStream

(PHP 8 >= 8.4.0)

XMLWriter::toStream Create new XMLWriter using a stream for output

Description

public static XMLWriter::toStream ( ressource $stream ): static

Creates a new XMLWriter using a stream for output.

Parameters

stream
The stream to use for output.

Return Values

Returns an XMLWriter .

Errors/Exceptions

  • Passing a ressource that is not a stream to stream will throw a TypeError .

See Also

add a note

User Contributed Notes

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