php / 8.1.5 / weakreference.create.html /

WeakReference::create

(PHP 7 >= 7.4.0, PHP 8)

WeakReference::createCreate a new weak reference

Description

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

Creates a new WeakReference.

Parameters

object

The object to be weakly referenced.

Return Values

Returns the freshly instantiated object.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/weakreference.create.php