WeakReference::create

(PHP 7 >= 7.4.0, PHP 8)

WeakReference::createCreate a new weak reference

说明

public static WeakReference::create(object $object): WeakReference

Creates a new WeakReference.

参数

object

The object to be weakly referenced.

返回值

Returns the freshly instantiated object.