XMLReader::fromUri
(PHP 8 >= 8.4.0)
XMLReader::fromUri — Creates an XMLReader from a URI to read from
Description
public static function XMLReader::fromUri(string
$uri, ?string $encoding = null, int $flags = 0): staticCreates an XMLReader from a URI to read from.
Parameters
uri
URI pointing to the document.
encoding
The document encoding or null.
flags
A bitmask of the LIBXML_* constants.
Return Values
Returns an XMLReader.
Errors/Exceptions
-
Passing an invalid
encodingwill throw a ValueError.
See Also
- XMLReader::fromStream() - Creates an XMLReader from a stream to read from
- XMLReader::fromString() - Creates an XMLReader from an XML string
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
