php8.5
Home/ Manual/ ldap / functions/ ldap_first_entry

ldap_first_entry

PHP function Edit on GitHub ✎

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

Return first result id

Description

ldap_first_entry(LDAP\Connection $ldap, LDAP\Result $result): LDAP\ResultEntry|false

Returns the entry identifier for first entry in the result. This entry identifier is then supplied to ldap_next_entry() routine to get successive entries from the result.

Entries in the LDAP result are read sequentially using the ldap_first_entry() and ldap_next_entry() functions.

Parameters

ldap

Ldap

result

Result

Return Values

Returns an LDAP\ResultEntry instance,Falseforfailure.

Changelog

VersionDescription

See Also

Source: reference/ldap/functions/ldap-first-entry.xml · from the official PHP manual (php/doc-en)