<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.ldap-parse-result.php',
    1 => 'ldap_parse_result',
    2 => 'Extract information from result',
  ),
  'up' => 
  array (
    0 => 'ref.ldap.php',
    1 => 'LDAP İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.ldap-parse-reference.php',
    1 => 'ldap_parse_reference',
  ),
  'next' => 
  array (
    0 => 'function.ldap-read.php',
    1 => 'ldap_read',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ldap/functions/ldap-parse-result.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ldap-parse-result" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ldap_parse_result</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.0.5, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ldap_parse_result</span> &mdash; <span class="dc-title">Extract information from result</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.ldap-parse-result-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ldap_parse_result</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<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>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<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>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter reference">&$error_code</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter reference">&$matched_dn</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter reference">&$error_message</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$referrals</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$controls</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Parses an LDAP search result.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ldap-parse-result-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">ldap</code></dt>
     <dd>
      <p class="para">
       <span class="function"><a href="function.ldap-list.php" class="function">ldap_list()</a></span> veya <span class="function"><a href="function.ldap-connect.php" class="function">ldap_connect()</a></span> işlevinden dönen
<span class="classname"><a href="class.ldap-connection.php" class="classname">LDAP\Connection</a></span>
nesnesi.
      </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> veya
<span class="function"><a href="function.ldap-search.php" class="function">ldap_search()</a></span>
işlevinden dönen <span class="classname"><strong class="classname">
LDAP\Result</strong></span> nesnesi.
      </p>
     </dd>
    
    
     <dt><code class="parameter">error_code</code></dt>
     <dd>
      <p class="para">
       A reference to a variable that will be set to the LDAP error code in
       the result, or <code class="literal">0</code> if no error occurred.
      </p>
     </dd>
    
    
     <dt><code class="parameter">matched_dn</code></dt>
     <dd>
      <p class="para">
       A reference to a variable that will be set to a matched DN if one was
       recognised within the request, otherwise it will be set to <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>.
      </p>
     </dd>
    
    
     <dt><code class="parameter">error_message</code></dt>
     <dd>
      <p class="para">
       A reference to a variable that will be set to the LDAP error message in
       the result, or an empty string if no error occurred.
      </p>
     </dd>
    
    
     <dt><code class="parameter">referrals</code></dt>
     <dd>
      <p class="para">
       A reference to a variable that will be set to an <span class="type"><a href="language.types.array.php" class="type array">array</a></span> set
       to all of the referral strings in the result, or an empty array if no
       referrals were returned.
      </p>
     </dd>
    
    
     <dt><code class="parameter">controls</code></dt>
     <dd>
      <p class="para">
       An <span class="type"><a href="language.types.array.php" class="type array">array</a></span> of LDAP Controls which have been sent with the response.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ldap-parse-result-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   Başarı durumunda <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.ldap-parse-result-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Sürüm: </th>
       <th>Açıklama</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
 <td>8.1.0</td>
 <td>
  <code class="parameter">ldap</code> bağımsız değişkeni artık
  <span class="classname"><a href="class.ldap-connection.php" class="classname">LDAP\Connection</a></span> nesnesi kabul ediyor, evvelce
  <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> türünde geçerli bir <code class="literal">ldap link</code>
  değeri kabul ederdi.
 </td>
</tr>

      <tr>
 <td>8.1.0</td>
 <td>
  <code class="parameter">sonuç</code> bağımsız değişkeni artık
  <span class="classname"><a href="class.ldap-result.php" class="classname">LDAP\Result</a></span> nesnesi kabul ediyor, evvelce
  <span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> türünde geçerli bir <code class="literal">ldap result</code>
  değeri kabul ederdi.
 </td>
</tr>

      <tr>
       <td>7.3.0</td>
       <td>
        Support for <code class="parameter">controls</code> added
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.ldap-parse-result-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 <span class="function"><strong>ldap_parse_result()</strong></span> example</strong></p>
    <div class="example-contents">
     <div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$result </span><span style="color: #007700">= </span><span style="color: #0000BB">ldap_search</span><span style="color: #007700">(</span><span style="color: #0000BB">$ldap</span><span style="color: #007700">, </span><span style="color: #DD0000">"cn=userref,dc=my-domain,dc=com"</span><span style="color: #007700">, </span><span style="color: #DD0000">"(cn=user*)"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$errcode </span><span style="color: #007700">= </span><span style="color: #0000BB">$dn </span><span style="color: #007700">= </span><span style="color: #0000BB">$errmsg </span><span style="color: #007700">= </span><span style="color: #0000BB">$refs </span><span style="color: #007700">=  </span><span style="color: #0000BB">null</span><span style="color: #007700">;<br />if (</span><span style="color: #0000BB">ldap_parse_result</span><span style="color: #007700">(</span><span style="color: #0000BB">$ldap</span><span style="color: #007700">, </span><span style="color: #0000BB">$result</span><span style="color: #007700">, </span><span style="color: #0000BB">$errcode</span><span style="color: #007700">, </span><span style="color: #0000BB">$dn</span><span style="color: #007700">, </span><span style="color: #0000BB">$errmsg</span><span style="color: #007700">, </span><span style="color: #0000BB">$refs</span><span style="color: #007700">)) {<br />    </span><span style="color: #FF8000">// do something with $errcode, $dn, $errmsg and $refs<br /></span><span style="color: #007700">}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

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


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