Get next result entry

ldap_next_entry

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

ldap_next_entryGet next result entry

說明

ldap_next_entry(LDAP\Connection $ldap, LDAP\ResultEntry $entry): LDAP\ResultEntry|false

Retrieve the entries stored in the result. Successive calls to the ldap_next_entry() return entries one by one till there are no more entries. The first call to ldap_next_entry() is made after the call to ldap_first_entry() with the entry as returned from the ldap_first_entry().

參數

ldap

通過 ldap_connect() 返回的 LDAP\Connection 實例。

entry

LDAP\ResultEntry 實例。

返回值

Returns an LDAP\ResultEntry instance for the next entry in the result whose entries are being read starting with ldap_first_entry(). If there are no more entries in the result then it returns false.

更新日誌

版本說明
8.1.0 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)
8.1.0 The entry parameter expects an LDAP\ResultEntry instance now; previously, a 資源(resource) was expected.
8.1.0 Returns an LDAP\Result instance now; previously, a 資源(resource) was returned.

參見

Leave a Reply

Your email address will not be published. Required fields are marked *