WeakReference::create

Create a new weak reference

Description

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

Creates a new WeakReference.

Parameters

object

The object to be weakly referenced.

Return Values

Returns a new WeakReference, or the existing instance if there was already a WeakReference to the same object.