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

LimitIterator::current

PHP function Edit on GitHub ✎

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

Get current element

Description

LimitIterator::current(): mixed

Gets the current element of the inner Iterator.

Parameters Parameters

Return Values

Returns the current element or null if there is none.

See Also

  • LimitIterator::key
  • LimitIterator::next
  • LimitIterator::rewind
  • LimitIterator::seek
  • LimitIterator::valid

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