📄 function.ldap-first-attribute.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Return first attribute</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ldap-explode-dn.html">ldap_explode_dn</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ldap-first-entry.html">ldap_first_entry</a></div> <div class="up"><a href="ref.ldap.html">LDAP Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.ldap-first-attribute" class="refentry"> <div class="refnamediv"> <h1 class="refname">ldap_first_attribute</h1> <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">ldap_first_attribute</span> — <span class="dc-title">Return first attribute</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><b><b>ldap_first_attribute</b></b></span> ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$link_identifier</tt></span> , <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$result_entry_identifier</tt></span> )</div> <p class="para rdfs-comment"> Gets the first attribute in the given entry. Remaining attributes are retrieved by calling <a href="function.ldap-next-attribute.html" class="function">ldap_next_attribute()</a> successively. </p> <p class="para"> Similar to reading entries, attributes are also read one by one from a particular entry. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">link_identifier</tt></i></span> <dd> <p class="para"> An LDAP link identifier, returned by <a href="function.ldap-connect.html" class="function">ldap_connect()</a>. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">result_entry_identifier</tt></i></span> <dd> <p class="para"> </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">ber_identifier</tt></i></span> <dd> <p class="para"> <i><tt class="parameter">ber_identifier</tt></i> is the identifier to internal memory location pointer. It is passed by reference. The same <i><tt class="parameter">ber_identifier</tt></i> is passed to <a href="function.ldap-next-attribute.html" class="function">ldap_next_attribute()</a> , which modifies that pointer. </p> <blockquote><p><b class="note">Note</b>: This parameter is no longer used as this is now handled automatically by PHP. For backwards compatibility PHP will not throw an error if this parameter is passed. <br /> </p></blockquote> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the first attribute in the entry on success and <b><tt>FALSE</tt></b> on error. </p> </div> <div class="refsect1 changelog"> <h3 class="title">ChangeLog</h3> <p class="para"> <table class="informaltable"> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Version</th> <th colspan="1">Description</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">5.2.4</td> <td colspan="1" rowspan="1" align="left"> The <i><tt class="parameter">ber_identifier</tt></i> was removed. This is now handled automatically by PHP. </td> </tr> </tbody> </colgroup> </table> </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.ldap-next-attribute.html" class="function" rel="rdfs-seeAlso">ldap_next_attribute()</a></li> <li class="member"><a href="function.ldap-get-attributes.html" class="function" rel="rdfs-seeAlso">ldap_get_attributes()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.ldap-explode-dn.html">ldap_explode_dn</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.ldap-first-entry.html">ldap_first_entry</a></div> <div class="up"><a href="ref.ldap.html">LDAP Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -