<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.ldap-explode-dn.php',
    1 => 'ldap_explode_dn',
    2 => 'DN を構成要素ごとに分割する',
  ),
  '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' => 'ja',
    '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">DN を構成要素ごとに分割する</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">
   <span class="function"><a href="function.ldap-get-dn.php" class="function">ldap_get_dn()</a></span> により返された DN を分割し、
   複数の要素に分けます。各部分は、相対区分名 (Relative
   Distinguished Name または 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">
       LDAP エンティティの識別名。
      </p>
     </dd>
    
    
     <dt><code class="parameter">with_attrib</code></dt>
     <dd>
      <p class="para">
       RDN が値のみを返すのか、
       あるいは、属性を同時に返すのかを指定するために使用します。
       属性を有する RDN (属性=値 フォーマットで) を得るためには
       <code class="parameter">with_attrib</code> を 0 とし、
       値のみを得るためには 1 に設定します。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.ldap-explode-dn-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   すべての DN 要素を配列で返します。失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
   この配列の最初の要素のキーは <code class="literal">count</code> で、
   これは返される値の数を表します。次の要素は、DN の数値添字配列となります。
  </p>
 </div>


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