PHP 8.3.4 Released!

ReflectionFunctionAbstract::getClosureThis

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

ReflectionFunctionAbstract::getClosureThisクロージャにバインドした this ポインタを返す

説明

public ReflectionFunctionAbstract::getClosureThis(): ?object

関数が static でないクロージャの場合に、 クロージャ内部で $this にバインドされたオブジェクト所得します。

パラメータ

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

戻り値

$this ポインタを返します。 エラー時には null を返します。

add a note

User Contributed Notes

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