XMLWriter::toStream
(PHP 8 >= 8.4.0)
XMLWriter::toStream — Create new XMLWriter using a stream for output
Description
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
streamwill throw a TypeError.
See Also
- XMLWriter::toMemory() - Create new XMLWriter using memory for string output
- XMLWriter::toUri() - Create new XMLWriter using a URI for output
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
