php8.5
Home/ Manual/ spl / appenditerator/ AppendIterator::current

AppendIterator::current

PHP function Edit on GitHub ✎

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

Gets the current value

Description

AppendIterator::current(): mixed

Gets the current value.

Parameters Parameters

Return Values

The current value if it is valid or null otherwise.

See Also

  • Iterator::current
  • AppendIterator::key
  • AppendIterator::valid
  • AppendIterator::next
  • AppendIterator::rewind

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