Вот массив:
array(35) {
[0]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0019181"
["building_name"]=>
string(47) "ул. Большая Панасовская 226"
}
[1]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0019186"
["building_name"]=>
string(55) "ул. Большая Панасовская 232 общ."
}
[2]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0019187"
["building_name"]=>
string(53) "ул. Большая Панасовская 232 к. 1"
}
[3]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0019188"
["building_name"]=>
string(53) "ул. Большая Панасовская 232 к. 2"
}
[4]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0019073"
["building_name"]=>
string(46) "ул. Большая Панасовская 34"
}
[5]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0127623"
["building_name"]=>
string(46) "ул. Большая Панасовская 38"
}
[6]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0021517"
["building_name"]=>
string(39) "ул. Полтавский шлях 152"
}
[7]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0021518"
["building_name"]=>
string(42) "ул. Полтавский шлях 152-А"
}
[8]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0021520"
["building_name"]=>
string(39) "ул. Полтавский шлях 156"
}
[9]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0021463"
["building_name"]=>
string(38) "ул. Полтавский шлях 22"
}
[10]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0021480"
["building_name"]=>
string(38) "ул. Полтавский шлях 46"
}
[11]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0023232"
["building_name"]=>
string(34) "пер. 2-й Таганский 11"
}
[12]=>
array(3) {
["employee_id"]=>
string(9) "504457788"
["building_id"]=>
string(9) "Д0015337"
["building_name"]=>
string(37) "ул. Холодногорская 16"
}
[13]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0015569"
["building_name"]=>
string(27) "ул. Ильинская 59"
}
[14]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0015570"
["building_name"]=>
string(27) "ул. Ильинская 61"
}
[15]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0015571"
["building_name"]=>
string(27) "ул. Ильинская 63"
}
[16]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0022651"
["building_name"]=>
string(33) "ул. Волонтерская 48"
}
[17]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0022652"
["building_name"]=>
string(33) "ул. Волонтерская 50"
}
[18]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0022653"
["building_name"]=>
string(33) "ул. Волонтерская 52"
}
[19]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0022654"
["building_name"]=>
string(33) "ул. Волонтерская 54"
}
[20]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0015330"
["building_name"]=>
string(37) "ул. Холодногорская 10"
}
[21]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0023931"
["building_name"]=>
string(44) "пер. Чередниченковский 7"
}
[22]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0128764"
["building_name"]=>
string(28) "ул. В. Усенко 25-А"
}
[23]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0022663"
["building_name"]=>
string(33) "ул. Волонтерская 63"
}
[24]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0022665"
["building_name"]=>
string(33) "ул. Волонтерская 65"
}
[25]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0015573"
["building_name"]=>
string(27) "ул. Ильинская 67"
}
[26]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0018718"
["building_name"]=>
string(31) "ул. П. Болбочана 50"
}
[27]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0018720"
["building_name"]=>
string(31) "ул. П. Болбочана 59"
}
[28]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0018721"
["building_name"]=>
string(31) "ул. П. Болбочана 63"
}
[29]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0021515"
["building_name"]=>
string(41) "ул. Полтавский шлях 148/2"
}
[30]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0021519"
["building_name"]=>
string(39) "ул. Полтавский шлях 154"
}
[31]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0022392"
["building_name"]=>
string(31) "ул. Тереховская 24"
}
[32]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0015331"
["building_name"]=>
string(37) "ул. Холодногорская 11"
}
[33]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0015334"
["building_name"]=>
string(37) "ул. Холодногорская 13"
}
[34]=>
array(3) {
["employee_id"]=>
NULL
["building_id"]=>
string(9) "Д0015329"
["building_name"]=>
string(36) "ул. Холодногорская 9"
}
}
Из этого массива мне надо выбрать строку, которая соответствует значению employee_id и building_id.
По аналогии запроса SQL SELECT * FROM `table` WHERE employee_id = 12345, building_id = '12345'