(PHP 8 >= 8.4.0)
XMLReader::fromString — 從 XML 字串建立 XMLReader
$source
$encoding
null
$flags
從 XML 字串建立 XMLReader。
source
包含要解析的 XML 的字串。
encoding
文件編碼或 null。
flags
LIBXML_* 常數的位元遮罩。
回傳一個 XMLReader。