<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.weakmap.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  '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);

?>
<div id="weakmap.offsetset" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">WeakMap::offsetSet</h1>
  <p class="verinfo">(PHP 8)</p><p class="refpurpose"><span class="refname">WeakMap::offsetSet</span> &mdash; <span class="dc-title">Updates the map with a new key-value pair</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-weakmap.offsetset-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>WeakMap::offsetSet</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$object</code></span>, <span class="methodparam"><span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>

  <p class="para rdfs-comment">
   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.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-weakmap.offsetset-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">object</code></dt>
    <dd>
     <p class="para">
       The object serving as key of the key-value pair.
     </p>
    </dd>
   
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <p class="para">
       The arbitrary data serving as value of the key-value pair.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-weakmap.offsetset-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   No value is returned.
  </p>
 </div>



</div><?php manual_footer($setup); ?>