ldap_next_attribute
string ldap_next_attribute(resource connectionID, int result, int Ber)
connectionID | Connection ID |
DN | Result ID |
Ber | Internal memory pointer |
Fetches the next attribute.
Returns:
String containing the next attribute; FALSE on error
Description:
Similar to ldap_next_entry() but on the next tier down the LDAP result set. ldap_next_attribute() returns the next attribute using the internal memory pointer from ldap_first_attribute(). Unlike ldap_first_attribute(), the internal memory pointer doesn’t have to be passed by reference with this function.
Availability:
UNIX/Linux, Windows
Version:
3+, 4+
Example:
Loop though attributes
$attr = ldap_first_attribute($ldapconn, $entry, &$ber); while ($attr) { $vals = ldap_get_values($ldapconn, ... |
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.