ldap_get_entries

array ldap_get_entries(resource connectionID, resource result) 

Builds an array of multiple entry results.

Returns:

Multidimensional associative array of all entries; FALSE on error

Description:

ldap_get_entries() is a quick and convenient way to extract all the information from a result set and store that information in a multidimensional array. Multiple calls to the array elements can then be performed to extract the relevant information. The format of the array is quite complex and is constructed in the following manner:

Element Description
$return_array["count "] Number of result entries
$return_array[n ] Number of the entry
$return_array[n ]["dn "] Distinguished name of the entry number
$return_array[n ]["count "] Number ...

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.