PHP 8.5.0 RC 2 available for testing

XMLWriter::toStream

(PHP 8 >= 8.4.0)

XMLWriter::toStreamCreate new XMLWriter using a stream for output

Description

public static XMLWriter::toStream(resource $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 resource that is not a stream to stream will throw a TypeError .

See Also

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes

There are no user contributed notes for this page.

AltStyle によって変換されたページ (->オリジナル) /