ldap_get_values

array ldap_get_values(int connectionID, int result, string attribute) 
connectionID Connection ID
result Result ID for which to retrieve attributes
attribute Attribute name to turn into an array

Makes an array of multiple attributes.

Returns:

Array of all values; FALSE on error

Description:

ldap_get_values() returns an array containing all the values for a particular attribute. The total number of attributes for an entry can also be determined from the value of the count array index.

Availability:

UNIX/Linux, Windows

Version:

3.0.12+, 4+

See also:

ldap_get_values_len 

Example:

Loop through attributes
 $attr = ldap_first_attribute($ldapconn, $entry, &$ber); while ($attr) { $vals = ldap_get_values($ldapconn, $entry, $attr); ...

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.