The Generator class

Introduction

Generator objects are returned from generators.

Caution

Generator objects cannot be instantiated via new.

Class synopsis

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

See Also

See also object iteration.

Table of Contents