php8.5
Home/ Manual/ spl / norewinditerator/ NoRewindIterator::key

NoRewindIterator::key

PHP function Edit on GitHub ✎

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

Get the current key

Description

NoRewindIterator::key(): mixed

Gets the current key.

Func

Parameters Parameters

Return Values

The current key.

See Also

  • NoRewindIterator::next

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