Generator
PHP Manual

Generator::current

(PHP 5 >= 5.5.0, PHP 7)

Generator::currentGet the yielded value

Description

public mixed Generator::current ( void )

Parameters

This function has no parameters.

Return Values

Returns the yielded value.


Generator
PHP Manual