« SplDoublyLinkedList::offsetExists
SplDoublyLinkedList::offsetSet »

SplDoublyLinkedList::offsetGet

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

SplDoublyLinkedList::offsetGet — 指定した $index の値を返す

説明

public function SplDoublyLinkedList::offsetGet(int $index): mixed

パラメータ

index

値を取得したいインデックス。

戻り値

指定した index の値を返します。

エラー / 例外

index が範囲外を指すときや index が整数として解釈できないときに OutOfRangeException をスローします。

関連キーワード:
index   SplDoublyLinkedList   offsetGet   offsetExists   offsetSet   mixed   インデックス   範囲   整数   解釈   OutOfRangeException
関連する関数・ページ:
spldoublylinkedlist.offsetset   spldoublylinkedlist.offsetexists   spldoublylinkedlist.offsetunset   spldoublylinkedlist.add   class.splstack   spldoublylinkedlist.current