<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.multipleiterator.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'multipleiterator.current.php',
    1 => 'MultipleIterator::current',
    2 => 'Gets the registered iterator instances',
  ),
  'up' => 
  array (
    0 => 'class.multipleiterator.php',
    1 => 'MultipleIterator',
  ),
  'prev' => 
  array (
    0 => 'multipleiterator.countiterators.php',
    1 => 'MultipleIterator::countIterators',
  ),
  'next' => 
  array (
    0 => 'multipleiterator.detachiterator.php',
    1 => 'MultipleIterator::detachIterator',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/spl/multipleiterator/current.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="multipleiterator.current" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MultipleIterator::current</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.3.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">MultipleIterator::current</span> &mdash; <span class="dc-title">Gets the registered iterator instances</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-multipleiterator.current-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>MultipleIterator::current</strong></span>(): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

  <p class="para rdfs-comment">
   Get the registered iterator instances current() result.
  </p>

  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is
currently not documented; only its argument list is available.
</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-multipleiterator.current-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">This function has no parameters.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-multipleiterator.current-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   An <span class="type"><a href="language.types.array.php" class="type array">array</a></span> containing the current values of each attached iterator.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-multipleiterator.current-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <p class="para">
   A <span class="classname"><a href="class.runtimeexception.php" class="classname">RuntimeException</a></span> if the iterator is invalid (as of PHP 8.1.0),
   or mode <strong><code>MIT_NEED_ALL</code></strong> is set and at least one attached iterator is
   not valid. Or an <span class="classname"><strong class="classname">IllegalValueException</strong></span> if a key is <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> and
   <strong><code>MIT_KEYS_ASSOC</code></strong> is set.
  </p>
 </div>



 <div class="refsect1 changelog" id="refsect1-multipleiterator.current-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>8.1.0</td>
      <td>
       A <span class="classname"><a href="class.runtimeexception.php" class="classname">RuntimeException</a></span> is now thrown if
       <span class="methodname"><strong>MultipleIterator::current()</strong></span> is called on an
       invalid iterator.  Previously, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> was returned.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-multipleiterator.current-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="multipleiterator.valid.php" class="methodname" rel="rdfs-seeAlso">MultipleIterator::valid()</a> - Checks the validity of sub iterators</span></li>
   </ul>
  </p>
 </div>


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