array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'weakmap.offsetset.php', 1 => 'WeakMap::offsetSet', 2 => 'Updates the map with a new key-value pair', ), 'up' => array ( 0 => 'class.weakmap.php', 1 => 'WeakMap', ), 'prev' => array ( 0 => 'weakmap.offsetget.php', 1 => 'WeakMap::offsetGet', ), 'next' => array ( 0 => 'weakmap.offsetunset.php', 1 => 'WeakMap::offsetUnset', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/weakmap/offsetset.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 8)
WeakMap::offsetSet — Updates the map with a new key-value pair
Updates the map with a new key-value pair. If the key already existed in the map, the old value is replaced with the new.
object
The object serving as key of the key-value pair.
value
The arbitrary data serving as value of the key-value pair.
Nessun valore viene restituito.