<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.quickhashstringinthash.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'quickhashstringinthash.delete.php',
    1 => 'QuickHashStringIntHash::delete',
    2 => 'This method deletes an entry from the hash',
  ),
  'up' => 
  array (
    0 => 'class.quickhashstringinthash.php',
    1 => 'QuickHashStringIntHash',
  ),
  'prev' => 
  array (
    0 => 'quickhashstringinthash.construct.php',
    1 => 'QuickHashStringIntHash::__construct',
  ),
  'next' => 
  array (
    0 => 'quickhashstringinthash.exists.php',
    1 => 'QuickHashStringIntHash::exists',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/quickhash/quickhashstringinthash/delete.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="quickhashstringinthash.delete" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">QuickHashStringIntHash::delete</h1>
  <p class="verinfo">(No version information available, might only be in Git)</p><p class="refpurpose"><span class="refname">QuickHashStringIntHash::delete</span> &mdash; <span class="dc-title">This method deletes an entry from the hash</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-quickhashstringinthash.delete-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>QuickHashStringIntHash::delete</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$key</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   This method deletes an entry from the hash, and returns whether the entry was
   deleted or not. Associated memory structures will not be freed immediately,
   but rather when the hash itself is freed.
  </p>
  <p class="simpara">
   Elements can not be deleted when the hash is used in an iterator. The
   method will not throw an exception, but simply return <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> like would
   happen with any other deletion failure.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-quickhashstringinthash.delete-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt><code class="parameter">key</code></dt>
    <dd>
     <span class="simpara">
      The key of the entry to delete.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-quickhashstringinthash.delete-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> when the entry was deleted, and <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> if the entry was not deleted.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-quickhashstringinthash.delete-examples">
  <h3 class="title">Esempi</h3>
  <div class="example" id="example-1">
   <p><strong>Example #1 <span class="function"><strong>QuickHashStringIntHash::delete()</strong></span> example</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">= new </span><span style="color: #0000BB">QuickHashStringIntHash</span><span style="color: #007700">( </span><span style="color: #0000BB">1024 </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">exists</span><span style="color: #007700">( </span><span style="color: #DD0000">'four' </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">add</span><span style="color: #007700">( </span><span style="color: #DD0000">'four'</span><span style="color: #007700">, </span><span style="color: #0000BB">5 </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">get</span><span style="color: #007700">( </span><span style="color: #DD0000">'four' </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">delete</span><span style="color: #007700">( </span><span style="color: #DD0000">'four' </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">exists</span><span style="color: #007700">( </span><span style="color: #DD0000">'four' </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">get</span><span style="color: #007700">( </span><span style="color: #DD0000">'four' </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">delete</span><span style="color: #007700">( </span><span style="color: #DD0000">'four' </span><span style="color: #007700">) );<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Il precedente esempio visualizzerà
qualcosa simile a:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(false)
bool(true)
int(5)
bool(true)
bool(false)
bool(false)
bool(false)</pre>
</div>
   </div>
  </div>
 </div>



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