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.
© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/weakreference.create.php