<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ldap.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.ldap-get-entries.php',
    1 => 'ldap_get_entries',
    2 => 'Get all result entries',
  ),
  'up' => 
  array (
    0 => 'ref.ldap.php',
    1 => 'LDAP 函数',
  ),
  'prev' => 
  array (
    0 => 'function.ldap-get-dn.php',
    1 => 'ldap_get_dn',
  ),
  'next' => 
  array (
    0 => 'function.ldap-get-option.php',
    1 => 'ldap_get_option',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ldap/functions/ldap-get-entries.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ldap-get-entries" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ldap_get_entries</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ldap_get_entries</span> &mdash; <span class="dc-title">Get all result entries</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ldap-get-entries-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ldap_get_entries</strong></span>(<span class="methodparam"><span class="type"><a href="class.ldap-connection.php" class="type LDAP\Connection">LDAP\Connection</a></span> <code class="parameter">$ldap</code></span>, <span class="methodparam"><span class="type"><a href="class.ldap-result.php" class="type LDAP\Result">LDAP\Result</a></span> <code class="parameter">$result</code></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Reads multiple entries from the given result, and then reading the
   attributes and multiple values.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ldap-get-entries-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">ldap</code></dt>
     <dd>
      <p class="para">
       通过 <span class="function"><a href="function.ldap-connect.php" class="function">ldap_connect()</a></span> 返回的 <span class="classname"><a href="class.ldap-connection.php" class="classname">LDAP\Connection</a></span> 实例。
      </p>
     </dd>
    
    
     <dt><code class="parameter">result</code></dt>
     <dd>
      <p class="para">
       通过 <span class="function"><a href="function.ldap-list.php" class="function">ldap_list()</a></span> 或者 <span class="function"><a href="function.ldap-search.php" class="function">ldap_search()</a></span> 返回的 <span class="classname"><a href="class.ldap-result.php" class="classname">LDAP\Result</a></span> 实例。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ldap-get-entries-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns a complete result information in a multi-dimensional array on
   success, 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
  <p class="para">
   The structure of the array is as follows.
   The attribute index is converted to lowercase. (Attributes are
   case-insensitive for directory servers, but not when used as
   array indices.)
   <div class="informalexample">
    <div class="example-contents">
<div class="cdata"><pre>
return_value[&quot;count&quot;] = number of entries in the result
return_value[0] : refers to the details of first entry

return_value[i][&quot;dn&quot;] =  DN of the ith entry in the result

return_value[i][&quot;count&quot;] = number of attributes in ith entry
return_value[i][j] = NAME of the jth attribute in the ith entry in the result

return_value[i][&quot;attribute&quot;][&quot;count&quot;] = number of values for
                                        attribute in ith entry
return_value[i][&quot;attribute&quot;][j] = jth value of attribute in ith entry
</pre></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.ldap-get-entries-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>
  现在 <code class="parameter">ldap</code> 参数接受 <span class="classname"><a href="class.ldap-connection.php" class="classname">LDAP\Connection</a></span>
  实例，之前接受有效的 <code class="literal">ldap link</code> <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span>。
 </td>
</tr>

     <tr>
 <td>8.1.0</td>
 <td>
  The <code class="parameter">result</code> parameter expects an <span class="classname"><a href="class.ldap-result.php" class="classname">LDAP\Result</a></span>
  instance now; previously, a valid <code class="literal">ldap result</code> <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> was expected.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 seealso" id="refsect1-function.ldap-get-entries-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.ldap-first-entry.php" class="function" rel="rdfs-seeAlso">ldap_first_entry()</a> - Return first result id</span></li>
    <li><span class="function"><a href="function.ldap-next-entry.php" class="function" rel="rdfs-seeAlso">ldap_next_entry()</a> - Get next result entry</span></li>
   </ul>
  </p>
 </div>


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