phpday 2027 - Call for Papers

CachingIterator::current

(PHP 5, PHP 7, PHP 8)

CachingIterator::current — Return the current element

Beschreibung

public function CachingIterator::current(): mixed

Returns the current element.

As the CachingIterator is one element ahead of its inner iterator, this is the element that was stored when the iterator last moved, not the current element of the inner iterator.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Returns the current element, or null if the iterator is not valid.

Siehe auch

+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top