<?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 => 'zh',
  ),
  'this' => 
  array (
    0 => 'multipleiterator.key.php',
    1 => 'MultipleIterator::key',
    2 => 'Gets the registered iterator instances',
  ),
  'up' => 
  array (
    0 => 'class.multipleiterator.php',
    1 => 'MultipleIterator',
  ),
  'prev' => 
  array (
    0 => 'multipleiterator.getflags.php',
    1 => 'MultipleIterator::getFlags',
  ),
  'next' => 
  array (
    0 => 'multipleiterator.next.php',
    1 => 'MultipleIterator::next',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/spl/multipleiterator/key.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

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

 </div>

 <div class="refsect1 description" id="refsect1-multipleiterator.key-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>MultipleIterator::key</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 key() result.
  </p>

  <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数还未编写文档,仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-multipleiterator.key-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-multipleiterator.key-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   An <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of all registered iterator instances.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-multipleiterator.key-errors">
  <h3 class="title">错误/异常</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.
  </p>
  <p class="para">
   Calling this method from <a href="control-structures.foreach.php" class="xref">foreach</a>
   triggers warning &quot;Illegal type returned&quot;.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-multipleiterator.key-changelog">
  <h3 class="title">更新日志</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>版本</th>
      <th>说明</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::key()</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.key-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="multipleiterator.current.php" class="methodname" rel="rdfs-seeAlso">MultipleIterator::current()</a> - Gets the registered iterator instances</span></li>
   </ul>
  </p>
 </div>


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