PHP Conference Japan 2024

XMLReader::getAttributeNo

(PHP 5 >= 5.1.0, PHP 7, PHP 8)

XMLReader::getAttributeNo依索引取得屬性值

說明

public XMLReader::getAttributeNo(int $index): ?string

根據屬性的位置傳回其值,如果屬性不存在或未定位在元素節點上,則傳回空字串。

參數

index

屬性的位置。

傳回值

屬性的值,如果在 index 位置不存在屬性或未定位在元素上,則傳回 null

參見

新增註解

使用者貢獻的註解

此頁面沒有使用者貢獻的註解。
To Top