« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 5 of about 5 for getExecutingGenerator (0.002 sec.)
ReflectionGenerator::getExecutingGenerator — 実行中の Generator | PHP 8.3 12685
ReflectionGenerator::getExecutingGenerator (PHP 7, PHP 8) ReflectionGenerator::getExecutingGenerator — 実行中の Generator オブジェクトを取得する 説明 public function ReflectionGenerator::getExecutingGenerator (): Generator 実行中の Generato ... ータ この関数にはパラメータはありません。 戻り値 現在実行中の Generator オブジェクトを返します。 例 例1 ReflectionGenerator::getExecutingGenerator() の例 <?php class GenExample { public function gen () { yield 1 ; } } $gen = (new GenExample )-> gen (); $reflectionGen = ... new ReflectionGenerator ( $gen ); $gen2 = $reflectionGen -> getExecutingGenerator (); var_dump ( $gen2 === $gen ); var_dump ( $gen2 -> current ()); 上の例の出力は、 たとえば以下のようになります。 bool(tru ...
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutinggenerator.html
ReflectionGenerator クラス | PHP 8.3 9210
ReflectionGenerator クラス (PHP 7, PHP 8) はじめに ReflectionGenerator クラスは、ジェネレータに関する情報を報告します。 クラス概要 final class ReflectionGenerator { /* メソッド */ public function __construct ( Generator $generator ) public ... function getExecutingFile (): string public function getExecutingGenerator (): Generator public function getExecutingLine (): int public function getFunction (): ReflectionFunctionAbstract public f ... ェクトを構築する ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータのファイル名を取得する ReflectionGenerator::getExecutingGenerator — 実行中の Generator オブジェクトを取得する ReflectionGenerator::getExecutingLine — 現在実行中のジェネレータの行を取得する ...
https://man.mtool.work/php/8.3/class.reflectiongenerator.html
ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータのファイル名を... 8254
ReflectionGenerator::getExecutingFile (PHP 7, PHP 8) ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータのファイル名を取得する 説明 public function ReflectionGenerator::getExecutingFile (): string 現在実行中のジェネレータのファ ... ile/example.php 参考 ReflectionGenerator::getExecutingLine() - 現在実行中のジェネレータの行を取得する ReflectionGenerator::getExecutingGenerator() - 実行中の Generator オブジェクトを取得する 他のマニュアルの関連ページ Python 2.3 Python gen Python contextlib Python 3. ...
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutingfile.html
ReflectionGenerator::getExecutingLine — 現在実行中のジェネレータの行を取得する ... 8254
ReflectionGenerator::getExecutingLine (PHP 7, PHP 8) ReflectionGenerator::getExecutingLine — 現在実行中のジェネレータの行を取得する 説明 public function ReflectionGenerator::getExecutingLine (): int 現在実行中のジェネレータの行を取得します。 ... eflectionGen -> getExecutingLine ()} " ; 上の例の出力は、 たとえば以下のようになります。 Line: 7 参考 ReflectionGenerator::getExecutingGenerator() - 実行中の Generator オブジェクトを取得する ReflectionGenerator::getExecutingFile() - 現在実行中のジェネレータのファイル ...
https://man.mtool.work/php/8.3/reflectiongenerator.getexecutingline.html
リフレクション | PHP 8.3 7482
リフレクション はじめに PHP には完全なリフレクション API が付属しており、 クラス、インターフェイス、関数、メソッド、そして拡張モジュールについて 型やプロパティを実行時に調べることができます。 さらに、このリフレクション API は関数、クラス、メ ... ェクトを構築する ReflectionGenerator::getExecutingFile — 現在実行中のジェネレータのファイル名を取得する ReflectionGenerator::getExecutingGenerator — 実行中の Generator オブジェクトを取得する ReflectionGenerator::getExecutingLine — 現在実行中のジェネレータの行を取得する ...
https://man.mtool.work/php/8.3/book.reflection.html
PREV 1 NEXT