<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.splfixedarray.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'splfixedarray.count.php',
    1 => 'SplFixedArray::count',
    2 => 'Returns the size of the array',
  ),
  'up' => 
  array (
    0 => 'class.splfixedarray.php',
    1 => 'SplFixedArray',
  ),
  'prev' => 
  array (
    0 => 'splfixedarray.construct.php',
    1 => 'SplFixedArray::__construct',
  ),
  'next' => 
  array (
    0 => 'splfixedarray.current.php',
    1 => 'SplFixedArray::current',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/spl/splfixedarray/count.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="splfixedarray.count" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SplFixedArray::count</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">SplFixedArray::count</span> &mdash; <span class="dc-title">Returns the size of the array</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-splfixedarray.count-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>SplFixedArray::count</strong></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   Returns the size of the array.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-splfixedarray.count-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">Diese Funktion besitzt keine Parameter.</p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-splfixedarray.count-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Returns the size of the array.
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-splfixedarray.count-examples">
  <h3 class="title">Beispiele</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Beispiel #1 <span class="methodname"><strong>SplFixedArray::count()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$array </span><span style="color: #007700">= new </span><span style="color: #0000BB">SplFixedArray</span><span style="color: #007700">(</span><span style="color: #0000BB">5</span><span style="color: #007700">);<br />echo </span><span style="color: #0000BB">$array</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">count</span><span style="color: #007700">() . </span><span style="color: #DD0000">"\n"</span><span style="color: #007700">;<br />echo </span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">$array</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>Das oben gezeigte Beispiel erzeugt folgende Ausgabe:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">5
5</pre>
</div>
    </div>
   </div>
  </p>
 </div>
 
 
 <div class="refsect1 notes" id="refsect1-splfixedarray.count-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    This method is functionally equivalent to <span class="methodname"><a href="splfixedarray.getsize.php" class="methodname">SplFixedArray::getSize()</a></span>.
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: 
   <p class="para">
    The count of elements is always equal to the set size because all values are initially 
    initialized with <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
   </p>
  </p></blockquote>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-splfixedarray.count-seealso">
  <h3 class="title">Siehe auch</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="splfixedarray.getsize.php" class="methodname" rel="rdfs-seeAlso">SplFixedArray::getSize()</a> - Gets the size of the array</span></li>
  </ul>
 </div>
 
</div><?php manual_footer($setup); ?>