uTools-Manuals/docs/php/ldap_explode_dn.html
2019-04-28 19:00:34 +08:00

80 lines
2.6 KiB
HTML

<!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 class="docs"><div id="layout">
<div id="layout-content"><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)</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">string</span> <code class="parameter">$dn</code></span>
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$with_attrib</code></span>
) : <span class="type">array</span></div>
<p class="para rdfs-comment">
Splits the DN returned by <span class="function"><a href="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">参数</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>FALSE</code></strong>.
The first element in the array has <em>count</em> key and
represents the number of returned values, next elements are numerically
indexed DN components.
</p>
</div>
</div></div></div></body></html>