W3cubDocs

/PHP

Weakref::get

(PECL weakref >= 0.1.0)

Weakref::getReturns the object pointed to by the weak reference

Description

public Weakref::get ( ) : object

Returns the object pointed to by the weak reference.

Parameters

This function has no parameters.

Return Values

Returns the object if the reference is still valid, null otherwise.

See Also

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