phpday 2027 - Call for Papers

WeakReference::get

(PHP 7 >= 7.4.0, PHP 8)

WeakReference::get — 弱く参照されたオブジェクトを取得する

説明

public function WeakReference::get(): ?object

弱く参照されたオブジェクトを取得します。 既にオブジェクトが破棄されていた場合、null が返されます。

パラメータ

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

戻り値

参照されている object を返します。 オブジェクトが破棄されている場合は、null を返します。

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top