XMLWriter::toStream

(PHP 8 >= 8.4.0)

XMLWriter::toStreamCreate new XMLWriter using a stream for output

Beschreibung

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

Creates a new XMLWriter using a stream for output.

Parameter-Liste

stream
The stream to use for output.

Rückgabewerte

Returns an XMLWriter.

Fehler/Exceptions

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

Siehe auch