Array
(
[0] => BBBBB
[1] => AAAAAA
[2] => YYYYY
[3] => CCCCC
)
Array
(
[result] => Array
(
[0] => Array
(
[ID] => 712
[NAME] => 76896789
[PROPERTY_112] => Array
(
[valueId] => 4208
[value] => AAAAAA
)
)
[1] => Array
(
[ID] => 1082
[NAME] => 4567456747
[PROPERTY_112] => Array
(
[valueId] => 6416
[value] => BBBBB
)
)
[2] => Array
(
[ID] => 1270
[NAME] => 4578467857
[PROPERTY_112] => Array
(
[valueId] => 7552
[value] => CCCCC
)
)
[3] => Array
(
[ID] => 1532
[NAME] => 45674567
[PROPERTY_112] => Array
(
[valueId] => 8700
[value] => YYYYY
)
)
)
)
<?php
$arr1 = [
'BBBBB',
'AAAAAA',
'YYYYY',
];
$arr2 = ['result' => [
['ID' => 712, 'PROPERTY_112' => ['value' => 'AAAAAA']],
['ID' => 713, 'PROPERTY_112' => ['value' => 'BBBBBB']],
['ID' => 714, 'PROPERTY_112' => ['value' => 'CCCCCC']],
]];
$values = array_column(array_column($arr2['result'], 'PROPERTY_112'), 'value');
$intersections = array_intersect($arr1, $values);
echo empty($intersections) ?
'Совпадений не найдено' :
'В массиве $arr2 найдены совпадения из списка $arr1: '.join(',', $intersections)
;