ldap_count_references

(PHP 8)

ldap_count_referencesCounts the number of references in a search result

說明

ldap_count_references(LDAP\Connection $ldap, LDAP\Result $result): int

Counts the number of references in a search result.

參數(shù)

ldap

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

result

通過 ldap_list() 或者 ldap_search() 返回的 LDAP\Result 實例。

返回值

Returns the number of references in a search result.

更新日志

版本 說明
8.1.0 現(xiàn)在 ldap 參數(shù)接受 LDAP\Connection 實例,之前接受 資源(resource)。
8.1.0 The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected.

參見