<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.ds-set.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'ds-set.diff.php',
    1 => 'Ds\\Set::diff',
  ),
  'up' => 
  array (
    0 => 'class.ds-set.php',
    1 => 'Ds\\Set',
  ),
  'prev' => 
  array (
    0 => 'ds-set.count.php',
    1 => 'Ds\\Set::count',
  ),
  'next' => 
  array (
    0 => 'ds-set.filter.php',
    1 => 'Ds\\Set::filter',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ds/ds/set/diff.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ds-set.diff" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Ds\Set::diff</h1>
  <p class="verinfo">(PECL ds &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">Ds\Set::diff</span> &mdash; <span class="dc-title">Creates a new set using values that aren&#039;t in another set</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-ds-set.diff-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Ds\Set::diff</strong></span>(<span class="methodparam"><span class="type"><a href="class.ds-set.php" class="type Ds\Set">Ds\Set</a></span> <code class="parameter">$set</code></span>): <span class="type"><a href="class.ds-set.php" class="type Ds\Set">Ds\Set</a></span></div>

  <p class="para rdfs-comment">
    Creates a new set using values that aren&#039;t in another set.
  </p>
  <p class="para">
    <code class="code">A \ B = {x ∈ A | x ∉ B}</code>
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-ds-set.diff-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <dl>
   
    <dt><code class="parameter">set</code></dt>
    <dd>
     <p class="para">
        Set containing the values to exclude.
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-ds-set.diff-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
    A new set containing all values that were not in the other <code class="parameter">set</code>.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-ds-set.diff-seealso">
  <h3 class="title">Siehe auch</h3>
  <p class="para">
   <ul class="simplelist">
    <li><a href="https://en.wikipedia.org/wiki/Complement_(set_theory)" class="link external">&raquo;&nbsp;Complement</a> on Wikipedia</li>
   </ul>
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-ds-set.diff-examples">
  <h3 class="title">Beispiele</h3>
  <div class="example" id="example-4422">
   <p><strong>Beispiel #1 <span class="function"><strong>Ds\Set::diff()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$a </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Ds\Set</span><span style="color: #007700">([</span><span style="color: #0000BB">1</span><span style="color: #007700">, </span><span style="color: #0000BB">2</span><span style="color: #007700">, </span><span style="color: #0000BB">3</span><span style="color: #007700">]);<br /></span><span style="color: #0000BB">$b </span><span style="color: #007700">= new </span><span style="color: #0000BB">\Ds\Set</span><span style="color: #007700">([</span><span style="color: #0000BB">3</span><span style="color: #007700">, </span><span style="color: #0000BB">4</span><span style="color: #007700">, </span><span style="color: #0000BB">5</span><span style="color: #007700">]);<br /><br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$a</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">diff</span><span style="color: #007700">(</span><span style="color: #0000BB">$b</span><span style="color: #007700">));<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">object(Ds\Set)#3 (2) {
  [0]=&gt;
  int(1)
  [1]=&gt;
  int(2)
}</pre>
</div>
   </div>
  </div>
 </div>



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