(PHP 5 >= 5.3.0, PHP 7, PHP 8)
SplDoublyLinkedList::offsetExists — 回傳請求的 $index 是否存在
$index
index
正在檢查的索引。
若請求的 index 存在則回傳 true,否則回傳 false。
true
false