Query: ldap_count_entries
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
LDAP_COUNT_ENTRIES(3) 1 LDAP_COUNT_ENTRIES(3) ldap_count_entries - Count the number of entries in a searchSYNOPSISint ldap_count_entries (resource $link_identifier, resource $result_identifier)DESCRIPTIONReturns the number of entries stored in the result of previous search operations.PARAMETERSo $link_identifier - An LDAP link identifier, returned by ldap_connect(3). o $result_identifier - The internal LDAP result.RETURN VALUESReturns number of entries in the result or FALSE on error.EXAMPLESExample #1 ldap-count-entries(3) example Retrieve number of entries in the result. // $ds is a valid link identifier (see ldap_connect) $dn = 'ou=example,dc=org'; $filter = '(|(sn=Doe*)(givenname=John*))'; $justthese = array('ou', 'sn', 'givenname', 'mail'); $sr = ldap_search($ds, $dn, $filter, $justthese); var_dump(ldap_count_entries($ds, $sr)); The above example will output something similar to: int(1) PHP Documentation Group LDAP_COUNT_ENTRIES(3)
Related Man Pages |
---|
ldap_first_entry(3) - redhat |
ldap_next_entry(3) - redhat |
ldap_first_entry(3) - opendarwin |
ldap_add(3) - php |
ldap_get_values(3) - php |