PHP Velho Oeste 2024

Generator::next

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

Generator::nextSetzt die Ausführung eines Generators fort

Beschreibung

public Generator::next(): void

Der Aufruf von Generator::next() hat denselben Effekt wie der Aufruf von Generator::send() mit null als Argument.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Es wird kein Wert zurückgegeben.

add a note add a note

User Contributed Notes 1 note

up
0
mark at lange dot demon dot co dot uk
7 years ago
It should be noted that next() sends an implicit null into the generator to ensure that code execution isn't blocked if the generator is expecting a value to be sent into it and the code doesn't execute any send()
To Top