(Available since version 1.0)
ArrayDeque::offsetValid — Returns whether the requested index is valid
$index
)Checks whether the requested index index
is valid.
index
The index being checked.
TRUE
if the requested index
is valid, otherwise FALSE
.