(PHP 8 >= 8.4.0)
XMLWriter::toStream — Create new XMLWriter using a stream for output
public static XMLWriter::toStream(resource $stream): static
Creates a new XMLWriter using a stream for output.
streamReturns an XMLWriter.
stream will throw a TypeError.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/xmlwriter.tostream.php