« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for getFunction (0.004 sec.)
ReflectionGenerator::getFunction — ジェネレータの関数名を取得する | PHP 8.3 13411
ReflectionGenerator::getFunction (PHP 7, PHP 8) ReflectionGenerator::getFunction — ジェネレータの関数名を取得する 説明 public function ReflectionGenerator::getFunction (): ReflectionFunctionAbstract ReflectionFunctionAbstract から派生したク ... ectionFunction ですし、 メソッドの場合は ReflectionMethod になります。 変更履歴 バージョン 説明 8.4.0 ReflectionGenerator::getFunction() は、 ジェネレータの実行が終了した後に呼び出すことができるようになりました。 例 例1 ReflectionGenerator::getFunction() の ... nction gen () { yield 1 ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ( $gen ); var_dump ( $reflectionGen -> getFunction ()); 上の例の出力は、 たとえば以下のようになります。 object(ReflectionFunction)#3 (1) { ["name"]=> string(3) "gen" } 参考 ...
https://man.mtool.work/php/8.3/reflectiongenerator.getfunction.html
ReflectionGenerator::__construct — ReflectionGenerator オブジェクトを構築する |... 9597
ReflectionGenerator::__construct (PHP 7, PHP 8) ReflectionGenerator::__construct — ReflectionGenerator オブジェクトを構築する 説明 public function ReflectionGenerator::__construct ( Generator $generator ) ReflectionGenerator オブジェクトを構 ... gen () { yield 1 ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ( $gen ); echo <<< output { $reflectionGen -> getFunction ()-> name } Line: { $reflectionGen -> getExecutingLine ()} File: { $reflectionGen -> getExecutingFile ()} output; 上の例の ... 出力は、 たとえば以下のようになります。 gen Line: 5 File: /path/to/file/example.php 参考 ReflectionGenerator::getFunction() - ジェネレータの関数名を取得する ReflectionGenerator::getExecutingLine() - 現在実行中のジェネレータの行を取得する Reflec ...
https://man.mtool.work/php/8.3/reflectiongenerator.construct.html
ReflectionGenerator クラス | PHP 8.3 9434
ReflectionGenerator クラス (PHP 7, PHP 8) はじめに ReflectionGenerator クラスは、ジェネレータに関する情報を報告します。 クラス概要 final class ReflectionGenerator { /* メソッド */ public function __construct ( Generator $generator ) public ... le (): string public function getExecutingGenerator (): Generator public function getExecutingLine (): int public function getFunction (): ReflectionFunctionAbstract public function getThis (): ? object public function getTrace ( int $options = DEBUG_BACKTR ... オブジェクトを取得する ReflectionGenerator::getExecutingLine — 現在実行中のジェネレータの行を取得する ReflectionGenerator::getFunction — ジェネレータの関数名を取得する ReflectionGenerator::getThis — ジェネレータの $this の値を取得する ReflectionGenerator::g ...
https://man.mtool.work/php/8.3/class.reflectiongenerator.html
ReflectionGenerator::getThis — ジェネレータの $this の値を取得する | PHP 8.3 8476
ReflectionGenerator::getThis (PHP 7, PHP 8) ReflectionGenerator::getThis — ジェネレータの $this の値を取得する 説明 public function ReflectionGenerator::getThis (): ? object ジェネレータがアクセスできる $this の値を取得します。 パラメータ こ ... Gen -> getThis ()); 上の例の出力は、 たとえば以下のようになります。 object(GenExample)#3 (0) { } 参考 ReflectionGenerator::getFunction() - ジェネレータの関数名を取得する ReflectionGenerator::getTrace() - 実行中のジェネレータのトレースを取得する 他のマニュア ...
https://man.mtool.work/php/8.3/reflectiongenerator.getthis.html
ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する | PHP ... 8296
ReflectionGenerator::getTrace (PHP 7, PHP 8) ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する 説明 public function ReflectionGenerator::getTrace ( int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ): array 現在実行中のジ ... (18) "example.php" ["line"]=> int(12) ["function"]=> string(3) "bar" ["args"]=> array(0) { } } } 参考 ReflectionGenerator::getFunction() - ジェネレータの関数名を取得する ReflectionGenerator::getThis() - ジェネレータの $this の値を取得する 他のマニュアルの関 ...
https://man.mtool.work/php/8.3/reflectiongenerator.gettrace.html
リフレクション | PHP 8.3 7699
リフレクション はじめに PHP には完全なリフレクション API が付属しており、 クラス、インターフェイス、関数、メソッド、そして拡張モジュールについて 型やプロパティを実行時に調べることができます。 さらに、このリフレクション API は関数、クラス、メ ... ctionExtension::getConstants — 定数を取得する ReflectionExtension::getDependencies — 依存性を取得する ReflectionExtension::getFunctions — 拡張モジュールの関数を取得する ReflectionExtension::getINIEntries — 拡張モジュールの ini エントリを取得する ReflectionE ... オブジェクトを取得する ReflectionGenerator::getExecutingLine — 現在実行中のジェネレータの行を取得する ReflectionGenerator::getFunction — ジェネレータの関数名を取得する ReflectionGenerator::getThis — ジェネレータの $this の値を取得する ReflectionGenerator::g ...
https://man.mtool.work/php/8.3/book.reflection.html
その他の変更 | PHP 8.3 7699
その他の変更 PHP コア クロージャ クロージャの名前が調整され、親関数の名前と 定義の行番号を含むようになりました。これにより、 スタックトレース内などでの識別が容易になります。 ファイバー(Fibers) デストラクタ実行中にファイバーを切り替えられるよ ... は、 ファイルディスクリプタ/ストリーム引数が無効な場合エラー番号を設定するようになりました。 Reflection ReflectionGenerator::getFunction() は、ジェネレータの実行が終了した後でも呼び出すことができるようになりました。 Sockets socket_create_listen() の backlog パ ...
https://man.mtool.work/php/8.3/migration84.other-changes.html
変更履歴 | PHP 8.3 7609
変更履歴 標準添付の拡張モジュールには次のような変更がありました。 Version Function Description 8.6.0 ini_get_all 各ディレクティブについて返される詳細情報の配列に、 builtin_default_value 要素が追加されました。 snmp3_get Net-SNMP ライブラリが ... れていました。 ReflectionClassConstant::__toString 付加された doc comment が含まれるようになりました。 ReflectionGenerator::getFunction ReflectionGenerator::getFunction は、 ジェネレータの実行が終了した後に呼び出すことができるようになりました。 ReflectionPro ...
https://man.mtool.work/php/8.3/doc.changelog.html
PREV 1 NEXT