Php/docs/class.generator

提供:Dev Guides
< Php
移動先:案内検索

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

はじめに

Generatorジェネレータ が返すオブジェクトです。

警告 Generator オブジェクトのインスタンスは new では作れません。


クラス概要


Generator implements Iterator {

/* メソッド */

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

}

目次