« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 91 for generator (0.002 sec.)
最初の yield までジェネレータを実行する 9975
« Generator::next Generator::send » PHP Manual Generator 最初の yield までジェネレータを実行する 検索 Generator::rewind (PHP 5 >= 5.5.0, PHP 7, PHP 8) Generator::rewind — 最初の yield までジェネレータを実行する 説明 public function Generator ... 行された 後に 実行されるのでは ありません 。 パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Generator::rewind() の例 <?php function generator (): Generator { echo "I'm a generator!\n" ; for ( $i = 1 ; $i <= 3 ; $i ++) { yiel ... d $i ; } } // ジェネレータを初期化 $generator = generator (); // まだ達していない場合、最初の yield 式の開始までジェネレータを巻き戻します。 $generator -> rewind (); // ... I'm a generator! // ここでは何も起きません; ジェネレータは既に巻き戻されています。 $generator -> rewind (); // No output (NULL) // ここでは ...
https://man.mtool.work/php/8.3/generator.rewind.html
最初の yield までジェネレータを実行する 9975
« Generator::next Generator::send » PHP Manual Generator 最初の yield までジェネレータを実行する 検索 Generator::rewind (PHP 5 >= 5.5.0, PHP 7, PHP 8) Generator::rewind — 最初の yield までジェネレータを実行する 説明 public function Generator ... 行された 後に 実行されるのでは ありません 。 パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 例 例1 Generator::rewind() の例 <?php function generator (): Generator { echo "I'm a generator!\n" ; for ( $i = 1 ; $i <= 3 ; $i ++) { yiel ... d $i ; } } // ジェネレータを初期化 $generator = generator (); // まだ達していない場合、最初の yield 式の開始までジェネレータを巻き戻します。 $generator -> rewind (); // ... I'm a generator! // ここでは何も起きません; ジェネレータは既に巻き戻されています。 $generator -> rewind (); // No output (NULL) // ここでは ...
https://man.mtool.work/php/8.3/generator.rewind.html
Generator クラス 9682
« stdClass Generator::current » PHP Manual 定義済みのインターフェイスとクラス Generator クラス 検索 Generator クラス (PHP 5 >= 5.5.0, PHP 7, PHP 8) はじめに Generator は ジェネレータ が返すオブジェクトです。 警告 Generator オブジェクトのイン ... スタンスは new では作れません。 クラス概要 final class Generator implements Iterator { /* メソッド */ public function current (): mixed public function getReturn (): mixed public function ... mixed public function valid (): bool public function __wakeup (): void } 参考 オブジェクトの反復処理 も参照ください。 目次 Generator::current — yield した値を取得する Generator::getReturn — ジェネレータの戻り値を取得する Generator::key — yield したキーを取 ... 得する Generator::next — ジェネレータを続行する Generator::rewind — 最初の yield までジェネレータを実行する Generator::send — 値をジェネレー ...
https://man.mtool.work/php/8.3/class.generator.html
Generator クラス 9682
« stdClass Generator::current » PHP Manual 定義済みのインターフェイスとクラス Generator クラス 検索 Generator クラス (PHP 5 >= 5.5.0, PHP 7, PHP 8) はじめに Generator は ジェネレータ が返すオブジェクトです。 警告 Generator オブジェクトのイン ... スタンスは new では作れません。 クラス概要 final class Generator implements Iterator { /* メソッド */ public function current (): mixed public function getReturn (): mixed public function ... mixed public function valid (): bool public function __wakeup (): void } 参考 オブジェクトの反復処理 も参照ください。 目次 Generator::current — yield した値を取得する Generator::getReturn — ジェネレータの戻り値を取得する Generator::key — yield したキーを取 ... 得する Generator::next — ジェネレータを続行する Generator::rewind — 最初の yield までジェネレータを実行する Generator::send — 値をジェネレー ...
https://man.mtool.work/php/8.3/class.generator.html
ジェネレータを続行する 9323
« Generator::key Generator::rewind » PHP Manual Generator ジェネレータを続行する 検索 Generator::next (PHP 5 >= 5.5.0, PHP 7, PHP 8) Generator::next — ジェネレータを続行する 説明 public function Generator::next (): void Generator::next() の ... コールは、 null を引数として Generator::send() をコールすることと同じ効果があります。 パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 関連 ... キーワード: Generator next ジェネレータ 続行 rewind send 効果 ...
https://man.mtool.work/php/8.3/generator.next.html
ジェネレータを続行する 9297
« Generator::key Generator::rewind » PHP Manual Generator ジェネレータを続行する 検索 Generator::next (PHP 5 >= 5.5.0, PHP 7, PHP 8) Generator::next — ジェネレータを続行する 説明 public function Generator::next (): void Generator::next() の ... コールは、 null を引数として Generator::send() をコールすることと同じ効果があります。 パラメータ この関数にはパラメータはありません。 戻り値 値を返しません。 関連 ... キーワード: Generator next ジェネレータ 続行 コール パラメータ key Search rewind function void null send 効果 戻り値 navigate Enter select Esc c ...
https://man.mtool.work/php/8.3/generator.next.html
yield した値を取得する 8911
« Generator Generator::getReturn » PHP Manual Generator yield した値を取得する 検索 Generator::current (PHP 5 >= 5.5.0, PHP 7, PHP 8) Generator::current — yield した値を取得する 説明 public function Generator::current (): mixed パラメータ こ ... の関数にはパラメータはありません。 戻り値 yield した値を返します。 関連キーワード: Generator yield current getReturn mixed ...
https://man.mtool.work/php/8.3/generator.current.html
yield したキーを取得する 8818
« Generator::getReturn Generator::next » PHP Manual Generator yield したキーを取得する 検索 Generator::key (PHP 5 >= 5.5.0, PHP 7, PHP 8) Generator::key — yield したキーを取得する 説明 public function Generator::key (): mixed yield した値の ... キーを取得します。 パラメータ この関数にはパラメータはありません。 戻り値 yield したキーを返します。 例 例1 Generator::key() の例 <?php function Gen () { yield 'key' => 'value' ; } $gen = Gen (); echo " { $gen -> key ()} => { $gen -> curren ... t ()} " ; 上の例の出力は以下となります。 key => value 関連キーワード: Generator yield キー getReturn next mixed current ...
https://man.mtool.work/php/8.3/generator.key.html
yield した値を取得する 8778
« Generator Generator::getReturn » PHP Manual Generator yield した値を取得する 検索 Generator::current (PHP 5 >= 5.5.0, PHP 7, PHP 8) Generator::current — yield した値を取得する 説明 public function Generator::current (): mixed パラメータ こ ... の関数にはパラメータはありません。 戻り値 yield した値を返します。 関連キーワード: Generator yield current パラメータ Search getReturn function mixed 戻り値 navigate Enter select Esc close open ...
https://man.mtool.work/php/8.3/generator.current.html
yield したキーを取得する 8711
« Generator::getReturn Generator::next » PHP Manual Generator yield したキーを取得する 検索 Generator::key (PHP 5 >= 5.5.0, PHP 7, PHP 8) Generator::key — yield したキーを取得する 説明 public function Generator::key (): mixed yield した値の ... キーを取得します。 パラメータ この関数にはパラメータはありません。 戻り値 yield したキーを返します。 例 例1 Generator::key() の例 <?php function Gen () { yield 'key' => 'value' ; } $gen = Gen (); echo " { $gen -> key ()} => { $gen -> curren ... t ()} " ; 上の例の出力は以下となります。 key => value 関連キーワード: Generator key yield キー gen function パラメータ Gen value getReturn Search next mixed 戻り値 php echo current navigate Enter select ...
https://man.mtool.work/php/8.3/generator.key.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT