XMLReader::fromString
(PHP 8 >= 8.4.0)
XMLReader::fromString — Creates an XMLReader from an XML string
Beschreibung
public static function XMLReader::fromString(
string $source,
?string $encoding = null,
int $flags = 0):
static
Creates an XMLReader from an XML string.
Parameter-Liste
source
-
Zeichenkette mit XML-Inhalt, der geparst werden soll.
encoding
-
Dokumentkodierung oder null.
flags
-
Bitmaske bestehend aus
LIBXML_*-Konstanten.
Fehler/Exceptions
-
Passing an invalid
encoding will throw a
ValueError.