Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 3958

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Splits DN into its component parts</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ldap-error.html">ldap_error</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ldap-first-attribute.html">ldap_first_attribute</a></div>
 <div class="up"><a href="ref.ldap.html">LDAP Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.ldap-explode-dn" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ldap_explode_dn</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">ldap_explode_dn</span> &mdash; <span class="dc-title">Splits DN into its component parts</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.ldap-explode-dn-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">array</span> <span class="methodname"><strong>ldap_explode_dn</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$dn</code></span>
   , <span class="methodparam"><span class="type">int</span> <code class="parameter">$with_attrib</code></span>
   )</div>

  <p class="para rdfs-comment">
   Splits the DN returned by  <span class="function"><a href="function.ldap-get-dn.html" class="function">ldap_get_dn()</a></span> and breaks it
   up into its component parts. Each part is known as Relative Distinguished
   Name, or RDN.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.ldap-explode-dn-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">dn</code></em></span>
     <dd>

      <p class="para">
       The distinguished name of an LDAP entity.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">with_attrib</code></em></span>
     <dd>

      <p class="para">
       Used to request if the RDNs are returned with only values or their
       attributes as well.  To get RDNs with the attributes (i.e. in
       attribute=value format) set <em><code class="parameter">with_attrib</code></em> to 0
       and to get only values set it to 1.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ldap-explode-dn-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns an array of all DN components.
   The first element in this array has <em>count</em> key and
   represents the number of returned values, next elements are numerically
   indexed DN components.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.ldap-error.html">ldap_error</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.ldap-first-attribute.html">ldap_first_attribute</a></div>
 <div class="up"><a href="ref.ldap.html">LDAP Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>