php8.5
Home/ Manual/ predefined / internaliterator/ InternalIterator::key

InternalIterator::key

PHP function Edit on GitHub ✎

(PHP 8)

Return the key of the current element

Description

InternalIterator::key(): mixed

Returns the key of the current element.

Parameters Parameters

Return Values

Returns the key of the current element.

Source: language/predefined/internaliterator/key.xml · from the official PHP manual (php/doc-en)