Generator::current

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

Generator::currentObtém o valor gerado

Descrição

public Generator::current(): mixed

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Retorna o valor gerado.

adicione uma nota

Notas Enviadas por Usuários (em inglês) 1 note

up
4
gib-o-master
3 years ago
current() advances untouched generator, same as next(), it makes the first step/iteration. the following calls will not.

non-yielded value will be NULL
To Top