<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.quickhashintstringhash.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'pt_BR',
  ),
  'this' => 
  array (
    0 => 'quickhashintstringhash.update.php',
    1 => 'QuickHashIntStringHash::update',
    2 => 'Este m&eacute;todo atualiza uma entrada no hash com um novo valor',
  ),
  'up' => 
  array (
    0 => 'class.quickhashintstringhash.php',
    1 => 'QuickHashIntStringHash',
  ),
  'prev' => 
  array (
    0 => 'quickhashintstringhash.set.php',
    1 => 'QuickHashIntStringHash::set',
  ),
  'next' => 
  array (
    0 => 'book.reflection.php',
    1 => 'Reflex&atilde;o',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'pt_BR',
    'path' => 'reference/quickhash/quickhashintstringhash/update.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="quickhashintstringhash.update" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">QuickHashIntStringHash::update</h1>
  <p class="verinfo">(PECL quickhash &gt;= Unknown)</p><p class="refpurpose"><span class="refname">QuickHashIntStringHash::update</span> &mdash; <span class="dc-title">Este método atualiza uma entrada no hash com um novo valor</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-quickhashintstringhash.update-description">
  <h3 class="title">Descrição</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>QuickHashIntStringHash::update</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$key</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Este método atualiza uma entrada com um novo valor e retorna se a entrada foi
   atualizada. Se houver chaves duplicadas, apenas o primeiro elemento encontrado receberá
   um valor atualizado. Use QuickHashIntStringHash::CHECK_FOR_DUPES durante a criação do hash
   para evitar que chaves duplicadas façam parte do hash.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-quickhashintstringhash.update-parameters">
  <h3 class="title">Parâmetros</h3>
  <dl>
   
    <dt><code class="parameter">key</code></dt>
    <dd>
     <span class="simpara">
      A chave da entrada a ser atualizada.
     </span>
    </dd>
   
   
    <dt><code class="parameter">value</code></dt>
    <dd>
     <span class="simpara">
      O novo valor para a entrada. Se uma string não for passada, ela será
      convertida para uma string automaticamente, se possível.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-quickhashintstringhash.update-returnvalues">
  <h3 class="title">Valor Retornado</h3>
  <p class="simpara">
   <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> quando a entrada foi encontrada e atualizada, e <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> se a entrada
   ainda não fazia parte do hash.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-quickhashintstringhash.update-examples">
  <h3 class="title">Exemplos</h3>
  <div class="example" id="example-1">
   <p><strong>Exemplo #1 Exemplo de <span class="function"><strong>QuickHashIntStringHash::update()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$hash</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">( </span><span style="color: #0000BB">161803398</span><span style="color: #007700">, </span><span style="color: #DD0000">"--" </span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$hash</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">add</span><span style="color: #007700">( </span><span style="color: #0000BB">314159265</span><span style="color: #007700">, </span><span style="color: #DD0000">"bastante" </span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">$hash</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">( </span><span style="color: #0000BB">161803398 </span><span style="color: #007700">), </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">$hash</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">( </span><span style="color: #0000BB">314159265 </span><span style="color: #007700">), </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$hash</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">update</span><span style="color: #007700">( </span><span style="color: #0000BB">314159265</span><span style="color: #007700">, </span><span style="color: #DD0000">"bastante mais um" </span><span style="color: #007700">) );<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">( </span><span style="color: #0000BB">$hash</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">update</span><span style="color: #007700">( </span><span style="color: #0000BB">314159999</span><span style="color: #007700">, </span><span style="color: #DD0000">"bastante mais um" </span><span style="color: #007700">) );<br /><br />echo </span><span style="color: #0000BB">$hash</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">( </span><span style="color: #0000BB">161803398 </span><span style="color: #007700">), </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">$hash</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get</span><span style="color: #007700">( </span><span style="color: #0000BB">314159265 </span><span style="color: #007700">), </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>O exemplo acima produzirá
algo semelhante a:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">--
bastante
bool(true)
bool(false)
--
bastante mais um</pre>
</div>
   </div>
  </div>
 </div>



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