ldap_first_attribute
string ldap_first_attribute(resource connectionID, int result, int memory_pointer)
connectionID | Connection ID |
result | Result ID |
memory_pointer | Internal memory pointer |
Fetches the first attribute.
Returns:
First attribute; FALSE on error
Description:
Similar to ldap_first_entry() but on the next tier down the LDAP result set. ldap_first_attribute() returns the first attribute from an entry. With ldap_first_entry(), a result ID is passed to ldap_next_entry(). ldap_first_attribute() differs in that an internal memory pointer is passed from the function to ldap_next_attribute() by reference.
Availability:
UNIX/Linux, Windows
Version:
3+, 4+
Example:
Retrieve a dynamic result
$attr = ldap_first_attribute($ldapconn, $entry, ... |
Get PHP Functions Essential Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.