update page now

Generator::current

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

Generator::currentErmittelt den aktuellen Wert eines Generators

Beschreibung

public Generator::current(): mixed

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

Gibt den ermittelten Wert zurück.

Found A Problem?

Learn How To Improve This PageSubmit a Pull RequestReport a Bug
+add a note

User Contributed Notes 1 note

up
5
gib-o-master
4 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
+add a note

AltStyle によって変換されたページ (->オリジナル) /