XMLWriter::toStream

(PHP 8 >= 8.4.0)

XMLWriter::toStream出力先のストリームを使い、新しい XMLWriter を作成する

説明

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

出力先のストリームを使い、新しい XMLWriter を作成します。

パラメータ

stream
出力先として使うストリーム

戻り値

XMLWriter を返します。

エラー / 例外

  • ストリームでないリソースを stream に渡すと、 TypeError をスローします。

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top