Php/docs/weakreference.create
From Get docs
WeakReference::create
(PHP 7 >= 7.4.0)
WeakReference::create — Create a new weak reference
Description
public static WeakReference::create
( object $referent
) : WeakReference
Creates a new WeakReference.
Parameters
referent
- The object to be weakly referenced.
Return Values
Returns the freshly instantiated object.