CakeFest 2024: The Official CakePHP Conference

XMLReader::getAttributeNo

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

XMLReader::getAttributeNoインデックスをもとに、属性の値を取得する

説明

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

その位置をもとにして属性の値を返します。属性が存在しなかったり 現在位置が要素ノードでなかったりした場合には空の文字列を返します。

パラメータ

index

属性の位置。

戻り値

属性の値を返します。指定した位置 index に 属性が見つからなかったり、現在位置が要素ではなかったりした場合には null を返します。

参考

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top