The Generator class

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

Introduzione

Generator objects are returned from generators.

Attenzione

Generator objects cannot be instantiated via new.

Sommario della classe

final class Generator implements Iterator {
/* Metodi */
public current(): mixed
public getReturn(): mixed
public key(): mixed
public next(): void
public rewind(): void
public send(mixed $value): mixed
public throw(Throwable $exception): mixed
public valid(): bool
public __wakeup(): void
}

Vedere anche:

See also object iteration.

Indice dei contenuti