PHP 8.5.0 Alpha 2 available for testing

WeakReference::get

(PHP 7 >= 7.4.0, PHP 8)

WeakReference::getObtiene un objeto débilmente referenciado

Descripción

public WeakReference::get(): ?object

Se obtiene un objeto débilmente referenciado. Si el objeto ya ha sido destruido, devuelve null.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

Devuelve el referenciado objeto, o null si el objeto ha sido destruido.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top