Home > PHP > Function > LDAP > ldap_count_entries()

ldap_count_entries()

ldap_count_entries - Count the number of entries in a search

Syntax

int ldap_count_entries (resource $link_identifier, resource $result_identifier)

Arguments

  • link_identifier - An LDAP link identifier, returned by ldap_connect().
  • result_identifier - The internal LDAP result.

Description

Returns the number of entries stored in the result of previous search operations.

Version

PHP 4, 5

Return value

Returns number of entries in the result or FALSE on error.