PHP - Manual: XMLReader::moveToAttributeNo
2024-12-21
(PHP 5 >= 5.1.0, PHP 7, PHP 8)
XMLReader::moveToAttributeNo — Move cursor to an attribute by index
$index
): boolPositions cursor on attribute based on its position.
index
The position of the attribute.
成功时返回 true
, 或者在失败时返回 false
。
官方地址:https://www.php.net/manual/en/xmlreader.movetoattributeno.php