ArrayIterator::offsetExists
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Check if offset exists
Description
ArrayIterator::offsetExists(mixed $key): bool
Checks if the offset exists.
Func
Parameters
keyThe offset being checked.
Return Values
true if the offset exists, otherwise false
See Also
ArrayIterator::valid