PHP: Hypertext Preprocessor (original) (raw)

ldap_first_entry

(PHP 4, PHP 5, PHP 7, PHP 8)

ldap_first_entry — Return first result id

Description

Entries in the LDAP result are read sequentially using theldap_first_entry() andldap_next_entry() functions.

Parameters

ldap

An LDAP\Connection instance, returned by ldap_connect().

result

An LDAP\Result instance, returned by ldap_list() or ldap_search().

Return Values

Returns an LDAP\ResultEntry instance, or [false](reserved.constants.php#constant.false) on failure.

Changelog

Version Description
8.1.0 The ldap parameter expects an LDAP\Connection instance now; previously, a valid ldap link resource was expected.
8.1.0 The result parameter expects an LDAP\Result instance now; previously, a valid ldap result resource was expected.
8.1.0 Returns an LDAP\ResultEntry instance now; previously, a resource was returned.

See Also