php8.5
Home/ Manual/ spl / limititerator/ LimitIterator::key

LimitIterator::key

PHP function Edit on GitHub ✎

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

Get current key

Description

LimitIterator::key(): mixed

Gets the key for the current item in the inner Iterator.

Parameters Parameters

Return Values

Returns the key for the current item.

See Also

  • LimitIterator::getPosition
  • LimitIterator::current
  • LimitIterator::next
  • LimitIterator::rewind
  • LimitIterator::seek
  • LimitIterator::valid

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