ldap_count_references
(PHP 8)
ldap_count_references — Counts the number of references in a search result
說明
Counts the number of references in a search result.
參數
-
ldap 通過 ldap_connect() 返回的 LDAP\Connection 實例。
-
result 通過 ldap_list() 或者 ldap_search() 返回的 LDAP\Result 實例。
返回值
Returns the number of references in a search result.
更新日誌
| 版本 | 說明 |
|---|---|
| 8.1.0 | 現在 ldap 參數接受 LDAP\Connection 實例,之前接受 資源(resource)。 |
| 8.1.0 | The result parameter expects an LDAP\Result instance now; previously, a 資源(resource) was expected. |
參見
- ldap_connect() - Connect to an LDAP server