XMLWriter::toStream
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.4.0)
Create new XMLWriter using a stream for output
Description
XMLWriter::toStream(resource $stream): static
Creates a new XMLWriter using a stream for output.
Parameters
streamThe stream to use for output.
Return Values
Returns an XMLWriter.
Errors/Exceptions
- Passing a resource that is not a stream to
streamwill throw aTypeError.
See Also
XMLWriter::toMemoryXMLWriter::toUri