array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'weakmap.offsetget.php', 1 => 'WeakMap::offsetGet', 2 => 'Returns the value pointed to by a certain object', ), 'up' => array ( 0 => 'class.weakmap.php', 1 => 'WeakMap', ), 'prev' => array ( 0 => 'weakmap.offsetexists.php', 1 => 'WeakMap::offsetExists', ), 'next' => array ( 0 => 'weakmap.offsetset.php', 1 => 'WeakMap::offsetSet', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/weakmap/offsetget.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

WeakMap::offsetGet

(PHP 8)

WeakMap::offsetGetReturns the value pointed to by a certain object

Descrizione

public WeakMap::offsetGet(object $object): mixed

Returns the value pointed to by a certain object.

Elenco dei parametri

object

Some object contained as key in the map.

Valori restituiti

Returns the value associated to the object passed as argument.

Errori/Eccezioni

Throws an Error on failure.