array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), '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' => 'en', '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 — Splits DN into its component parts
Splits the DN returned by ldap_get_dn() and breaks it up into its component parts. Each part is known as Relative Distinguished Name, or RDN.
dn
The distinguished name of an LDAP entity.
with_attrib
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 with_attrib
to 0
and to get only values set it to 1.
Returns an array of all DN components, 或者在失败时返回 false
.
The first element in the array has count
key and
represents the number of returned values, next elements are numerically
indexed DN components.