php8.5
Home/ Manual/ spl / iteratoriterator/ IteratorIterator::current

IteratorIterator::current

PHP function Edit on GitHub ✎

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

Get the current value

Description

IteratorIterator::current(): mixed

Get the value of the current element.

Parameters Parameters

Return Values

The value of the current element.

See Also

  • IteratorIterator::key

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