« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 4 of about 4 for isClosed (0.002 sec.)
ReflectionGenerator::isClosed — ジェネレータの実行が完了したかどうかを調べる | ... 12334
ReflectionGenerator::isClosed (PHP 8 >= 8.4.0) ReflectionGenerator::isClosed — ジェネレータの実行が完了したかどうかを調べる 説明 public function ReflectionGenerator::isClosed (): bool 実行中のジェネレータが関数の終端やreturn文に到達したか、 ... タ この関数にはパラメータはありません。 戻り値 ジェネレータの実行が完了したかどうかを返します。 例 例1 ReflectionGenerator::isClosed() の例 <?php function gen () { yield 'a' ; yield 'a' ; } $gen = gen (); $reflectionGen = new ReflectionGenerator ( $gen ); ... foreach ( $gen as $value ) { echo $value , PHP_EOL ; var_dump ( $reflectionGen -> isClosed ()); } var_dump ( $reflectionGen -> isClosed ()); ?> 上の例の出力は以下となります。 a bool(false) a bool(false) bool(true) ...
https://man.mtool.work/php/8.3/reflectiongenerator.isclosed.html
ReflectionGenerator クラス | PHP 8.3 8931
ReflectionGenerator クラス (PHP 7, PHP 8) はじめに ReflectionGenerator クラスは、ジェネレータに関する情報を報告します。 クラス概要 final class ReflectionGenerator { /* メソッド */ public function __construct ( Generator $generator ) public ... ion getThis (): ? object public function getTrace ( int $options = DEBUG_BACKTRACE_PROVIDE_OBJECT ): array public function isClosed (): bool } 変更履歴 バージョン 説明 8.0.0 このクラスは final として定義され、 継承できなくなりました。 目次 ReflectionGene ... レータの $this の値を取得する ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する ReflectionGenerator::isClosed — ジェネレータの実行が完了したかどうかを調べる 他のマニュアルの関連ページ Python gen Python inspect Python 2.3 ...
https://man.mtool.work/php/8.3/class.reflectiongenerator.html
新しく追加された関数 | PHP 8.3 8081
新しく追加された関数 PHP コア request_parse_body() BCMath bcceil() bcdivmod() bcfloor() bcround() Date DateTime::createFromTimestamp() DateTime::getMicrosecond() DateTime::setMicrosecond() DateTimeImmutable::createFromTimestamp() DateTimeIm ... () ReflectionProperty::setRawValueWithoutLazyInitialization() ReflectionClassConstant::isDeprecated() ReflectionGenerator::isClosed() ReflectionProperty::isDynamic() Sodium sodium_crypto_aead_aegis128l_ * sodium_crypto_aead_aegis256_ * SPL SplObjectStora ...
https://man.mtool.work/php/8.3/migration84.new-functions.html
リフレクション | PHP 8.3 7600
リフレクション はじめに PHP には完全なリフレクション API が付属しており、 クラス、インターフェイス、関数、メソッド、そして拡張モジュールについて 型やプロパティを実行時に調べることができます。 さらに、このリフレクション API は関数、クラス、メ ... レータの $this の値を取得する ReflectionGenerator::getTrace — 実行中のジェネレータのトレースを取得する ReflectionGenerator::isClosed — ジェネレータの実行が完了したかどうかを調べる ReflectionFiber — ReflectionFiber クラス ReflectionFiber::__construct — Con ...
https://man.mtool.work/php/8.3/book.reflection.html
PREV 1 NEXT