PHP 8.5.0 Beta 3 available for testing

XMLReader::fromUri

(PHP 8 >= 8.4.0)

XMLReader::fromUri読み取り先の URI から、XMLReader を作成する

説明

public static XMLReader::fromUri(string $uri, ?string $encoding = null, int $flags = 0): static

読み取り先の URI から、XMLReader を作成します。

パラメータ

uri

ドキュメントを指す URI。

encoding

ドキュメントのエンコーディングあるいは null

flags

LIBXML_* 定数のビットマスク。

戻り値

XMLReader を返します。

エラー / 例外

  • 不正な encoding を渡すと、 ValueError をスローします。

参考

add a note

User Contributed Notes

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