php8.5
Home/ Manual/ spl / cachingiterator/ CachingIterator::offsetExists

CachingIterator::offsetExists

PHP function Edit on GitHub ✎

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

The offsetExists purpose

Description

CachingIterator::offsetExists(string $key): bool

Func

Parameters

key

The index being checked.

Return Values

Returns true if an entry referenced by the offset exists, false otherwise.

Source: reference/spl/cachingiterator/offsetexists.xml · from the official PHP manual (php/doc-en)