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', ), 'up' => array ( 0 => 'ref.ldap.php', 1 => 'LDAP 関数', ), 'prev' => array ( 0 => 'function.ldap-exop.php', 1 => 'ldap_exop', ), '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', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
ldap_explode_dn — DN を構成要素ごとに分割する
ldap_get_dn() により返された DN を分割し、 複数の要素に分けます。各部分は、相対区分名 (Relative Distinguished Name または RDN) と呼ばれます。
dn
LDAP エンティティの識別名。
with_attrib
RDN が値のみを返すのか、
あるいは、属性を同時に返すのかを指定するために使用します。
属性を有する RDN (属性=値 フォーマットで) を得るためには
with_attrib
を 0 とし、
値のみを得るためには 1 に設定します。
すべての DN 要素を配列で返します。失敗した場合に false
を返します。
この配列の最初の要素のキーは count
で、
これは返される値の数を表します。次の要素は、DN の数値添字配列となります。