php man page for ldap_count_entries

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 search

SYNOPSIS
int ldap_count_entries (resource $link_identifier, resource $result_identifier)
DESCRIPTION
Returns the number of entries stored in the result of previous search operations.
PARAMETERS
o $link_identifier - An LDAP link identifier, returned by ldap_connect(3). o $result_identifier - The internal LDAP result.
RETURN VALUES
Returns number of entries in the result or FALSE on error.
EXAMPLES
Example #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
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun