for($i=0; $i < $info["count"];$i++){
echo $info[$i]['person'];
}
при
`var_dump($info);`
выдает
array(70) {
["objectclass"]=>
array(5) {
["count"]=>
int(4)
[0]=>
string(3) "top"
[1]=>
string(6) "person"
[2]=>
string(20) "organizationalPerson"
[3]=>
string(4) "user"
}
[0]=>
string(11) "objectclass"
["cn"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(4) "User"
}
[1]=>
string(2) "cn"
["physicaldeliveryofficename"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(5) "12345"
}
[2]=>
string(26) "physicaldeliveryofficename"
["givenname"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(4) "User"
}
[3]=>
string(9) "givenname"
["distinguishedname"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(38) "CN=User,OU=epc,DC=test,DC=epc,DC=local"
}
[4]=>
string(17) "distinguishedname"
["instancetype"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(1) "4"
}
[5]=>
string(12) "instancetype"
["whencreated"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(17) "20191010084823.0Z"
}
[6]=>
string(11) "whencreated"
["whenchanged"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(17) "20191010105013.0Z"
}
[7]=>
string(11) "whenchanged"
["displayname"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(4) "User"
}
[8]=>
string(11) "displayname"
["usncreated"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(5) "13230"
}
[9]=>
string(10) "usncreated"
["memberof"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(66) "CN=Администраторы,CN=Builtin,DC=test,DC=epc,DC=local"
}
[10]=>
string(8) "memberof"
["usnchanged"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(5) "13778"
}
[11]=>
string(10) "usnchanged"
["name"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(4) "User"
}
[12]=>
string(4) "name"
["objectguid"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(16) "'&�`��eM��A<���"
}
[13]=>
string(10) "objectguid"
["useraccountcontrol"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(5) "66048"
}
[14]=>
string(18) "useraccountcontrol"
["badpwdcount"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(1) "0"
}
[15]=>
string(11) "badpwdcount"
["codepage"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(1) "0"
}
[16]=>
string(8) "codepage"
["countrycode"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(1) "0"
}
[17]=>
string(11) "countrycode"
["badpasswordtime"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(18) "132151740519450474"
}
[18]=>
string(15) "badpasswordtime"
["lastlogoff"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(1) "0"
}
[19]=>
string(10) "lastlogoff"
["lastlogon"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(18) "132151749367363515"
}
[20]=>
string(9) "lastlogon"
["pwdlastset"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(18) "132151737784439560"
}
[21]=>
string(10) "pwdlastset"
["primarygroupid"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(3) "513"
}
[22]=>
string(14) "primarygroupid"
["objectsid"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(28) "��g/0���
U"
}
[23]=>
string(9) "objectsid"
["admincount"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(1) "1"
}
[24]=>
string(10) "admincount"
["accountexpires"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(18) "132197076000000000"
}
[25]=>
string(14) "accountexpires"
["logoncount"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(1) "3"
}
[26]=>
string(10) "logoncount"
["samaccountname"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(4) "User"
}
[27]=>
string(14) "samaccountname"
["samaccounttype"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(9) "805306368"
}
[28]=>
string(14) "samaccounttype"
["userprincipalname"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(19) "User@test.epc.local"
}
[29]=>
string(17) "userprincipalname"
["objectcategory"]=>
array(2) {
["count"]=>
int(1)
[0]=>
string(60) "CN=Person,CN=Schema,CN=Configuration,DC=test,DC=epc,DC=local"
}
[30]=>