php8.5
Home/ Manual/ predefined / iterator/ Iterator::current

Iterator::current

PHP function Edit on GitHub ✎

(PHP 5, PHP 7, PHP 8)

Return the current element

Description

Iterator::current(): mixed

Returns the current element.

Parameters Parameters

Return Values

Can return any type.

Source: language/predefined/iterator/current.xml · from the official PHP manual (php/doc-en)