current() advances untouched generator, same as next(), it makes the first step/iteration. the following calls will not.
non-yielded value will be NULL
(PHP 5 >= 5.5.0, PHP 7, PHP 8)
Generator::current — Ermittelt den aktuellen Wert eines Generators
Diese Funktion besitzt keine Parameter.
Gibt den ermittelten Wert zurück.
current() advances untouched generator, same as next(), it makes the first step/iteration. the following calls will not.
non-yielded value will be NULL