WeakReference::get

(PHP 7 >= 7.4.0, PHP 8)

WeakReference::getGet a weakly referenced Object

说明

public WeakReference::get(): ?object

Gets a weakly referenced object. If the object has already been destroyed, null is returned.

参数

此函数没有参数。

返回值

Returns the referenced object, or null if the object has been destroyed.