<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.ds.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'class.ds-hashable.php',
    1 => 'Ds\\Hashable',
    2 => 'The Hashable interface',
  ),
  'up' => 
  array (
    0 => 'book.ds.php',
    1 => 'Data Structures',
  ),
  'prev' => 
  array (
    0 => 'ds-collection.toarray.php',
    1 => 'Ds\\Collection::toArray',
  ),
  'next' => 
  array (
    0 => 'ds-hashable.equals.php',
    1 => 'Ds\\Hashable::equals',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ds/ds.hashable.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.ds-hashable.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.ds-hashable" class="reference">

 <h1 class="title">The Hashable interface</h1>
 

 <div class="partintro"><p class="verinfo">(PECL ds &gt;= 1.0.0)</p>


  <div class="section" id="ds-hashable.intro">
   <h2 class="title">Giriş</h2>
   <p class="para">
        Hashable is an interface which allows objects to be used as keys.
        It’s an alternative to <span class="function"><a href="function.spl-object-hash.php" class="function">spl_object_hash()</a></span>,
        which determines an object’s hash based on its handle:
        this means that two objects that are considered equal by an implicit
        definition would not treated as equal because they are not the same instance.
   </p>
   <p class="para">
        <span class="function"><a href="function.hash.php" class="function">hash()</a></span> is used to return a scalar value to be used as
        the object&#039;s hash value, which determines where it goes in the hash table.
        While this value does not have to be unique, objects which are equal must
        have the same hash value.
    </p>
    <p class="para">
        <span class="function"><strong>equals()</strong></span> is used to determine if two objects are equal.
        It&#039;s guaranteed that the comparing object will be an instance of the same class
        as the subject.
    </p>

  </div>


  <div class="section" id="ds-hashable.synopsis">
   <h2 class="title">Arayüz Sözdizimi</h2>


   <div class="classsynopsis"><div class="classsynopsisinfo">
    <span class="modifier">interface</span> <strong class="interfacename"><strong class="interfacename">Ds\Hashable</strong></strong> {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Yöntemler */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="ds-hashable.equals.php" class="methodname">equals</a></span>(<span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$obj</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">abstract</span> <span class="modifier">public</span> <span class="methodname"><a href="ds-hashable.hash.php" class="methodname">hash</a></span>(): <span class="type"><a href="language.types.mixed.php" class="type mixed">mixed</a></span></div>

   }</div>


  </div>

 </div>

 














<h2>İçindekiler</h2><ul class="chunklist chunklist_reference"><li><a href="ds-hashable.equals.php">Ds\Hashable::equals</a> — Determines whether an object is equal to the current instance</li><li><a href="ds-hashable.hash.php">Ds\Hashable::hash</a> — Returns a scalar value to be used as a hash value</li></ul>
</div>
<?php manual_footer($setup); ?>