<?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 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.ldap-explode-dn.php',
    1 => 'ldap_explode_dn',
    2 => 'Splits DN into its component parts',
  ),
  'up' => 
  array (
    0 => 'ref.ldap.php',
    1 => 'Функції LDAP',
  ),
  'prev' => 
  array (
    0 => 'function.ldap-exop-whoami.php',
    1 => 'ldap_exop_whoami',
  ),
  'next' => 
  array (
    0 => 'function.ldap-first-attribute.php',
    1 => 'ldap_first_attribute',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ldap/functions/ldap-explode-dn.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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, PHP 7, PHP 8)</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">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>ldap_explode_dn</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$dn</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$with_attrib</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">
   Splits the DN returned by <span class="function"><a href="function.ldap-get-dn.php" 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">Параметри</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">dn</code></dt>
     <dd>
      <p class="para">
       The distinguished name of an LDAP entity.
      </p>
     </dd>
    
    
     <dt><code class="parameter">with_attrib</code></dt>
     <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 <code class="parameter">with_attrib</code> to 0
       and to get only values set it to 1.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ldap-explode-dn-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns an array of all DN components,  або <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> в разі помилки.
   The first element in the array has <code class="literal">count</code> key and
   represents the number of returned values, next elements are numerically
   indexed DN components.
  </p>
 </div>


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