<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.quickhashinthash.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'quickhashinthash.get.php',
    1 => 'QuickHashIntHash::get',
    2 => 'This method retrieves a value from the hash by its key',
  ),
  'up' => 
  array (
    0 => 'class.quickhashinthash.php',
    1 => 'QuickHashIntHash',
  ),
  'prev' => 
  array (
    0 => 'quickhashinthash.exists.php',
    1 => 'QuickHashIntHash::exists',
  ),
  'next' => 
  array (
    0 => 'quickhashinthash.getsize.php',
    1 => 'QuickHashIntHash::getSize',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/quickhash/quickhashinthash/get.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="quickhashinthash.get" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">QuickHashIntHash::get</h1>
  <p class="verinfo">(PECL quickhash &gt;= Unknown)</p><p class="refpurpose"><span class="refname">QuickHashIntHash::get</span> &mdash; <span class="dc-title">This method retrieves a value from the hash by its key</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-quickhashinthash.get-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>QuickHashIntHash::get</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="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="simpara">
   This method retrieves a value from the hash by its key.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-quickhashinthash.get-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   
    <dt><code class="parameter">key</code></dt>
    <dd>
     <span class="simpara">
      The key of the entry to retrieve.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-quickhashinthash.get-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   The value if the key exists, or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> if the key wasn&#039;t part of the hash.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-quickhashinthash.get-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="example-1">
   <p><strong>Example #1 <span class="function"><strong>QuickHashIntHash::get()</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">QuickHashIntHash</span><span style="color: #007700">( </span><span style="color: #0000BB">8 </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: #0000BB">1 </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">add</span><span style="color: #007700">( </span><span style="color: #0000BB">2 </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: #0000BB">2 </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">add</span><span style="color: #007700">( </span><span style="color: #0000BB">3</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: #0000BB">3 </span><span style="color: #007700">) );<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>The above example will output
something similar to:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(false)
bool(true)
int(1)
bool(true)
int(5)</pre>
</div>
   </div>
  </div>
 </div>



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