php8.5
Home/ Manual/ predefined / generator/ Generator::current

Generator::current

PHP function Edit on GitHub ✎

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

Get the yielded value

Description

Generator::current(): mixed

Parameters Parameters

Return Values

Returns the yielded value.

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