LDAP ldap_get_entries
(PHP 4, PHP 5, PHP 7, PHP 8)
ldap_get_entries — 모든 결과 항목 가져오기
설명
ldap_get_entries(LDAP\Connection $ldap
, LDAP\Result $result
): array|false
주어진 결과에서 여러 항목을 읽은 다음 속성과 여러 값을 읽습니다.
매개변수
ldap
- ldap_connect()에 의해 반환된 LDAP\Connection 인스턴스입니다.
result
- ldap_list() 또는 ldap_search()에 의해 반환된 LDAP\Result 인스턴스입니다.
반환 값
성공하면 다차원 배열의 완전한 결과 정보를 반환하고 실패하면 false
를 반환합니다.
배열의 구조는 다음과 같습니다. 속성 인덱스는 소문자로 변환됩니다. (속성은 디렉토리 서버의 경우 대소문자를 구분하지 않지만 배열 인덱스로 사용될 때는 그렇지 않습니다.)
return_value["count"] = number of entries in the result return_value[0] : refers to the details of first entry return_value[i]["dn"] = DN of the ith entry in the result return_value[i]["count"] = number of attributes in ith entry return_value[i][j] = NAME of the jth attribute in the ith entry in the result return_value[i]["attribute"]["count"] = number of values for attribute in ith entry return_value[i]["attribute"][j] = jth value of attribute in ith entry
변경 로그
버전 | 설명 |
---|---|
8.1.0 | ldap 매개변수는 이제 LDAP\Connection 인스턴스를 예상합니다. 이전에는 리소스가 필요했습니다. |
8.1.0 | result 매개변수는 이제 LDAP\Result 인스턴스를 예상합니다. 이전에는 리소스가 필요했습니다. |
기타
- ldap_first_entry() - 첫 번째 결과 ID 반환
- ldap_next_entry() - 다음 결과 항목 가져오기