PHP 8.3.4 Released!

ReflectionFunctionAbstract::isGenerator

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

ReflectionFunctionAbstract::isGeneratorこの関数がジェネレータかどうかを返す

説明

public ReflectionFunctionAbstract::isGenerator(): bool

パラメータ

この関数にはパラメータはありません。

戻り値

この関数がジェネレータである場合に true、そうでない場合に false を返します。 処理に失敗した場合に null を返します。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top