$queries = [
[
'technologies' => [
'75',
'76',
'77',
]
],
[
'query' => 'php',
'technologies' => [
'78',
'79',
'75',
]
],
];
$result = [];
foreach ($queries as $query) {
foreach ($query['technologies'] as $technology) {
if (isset($result[$technology])) {
$result[$technology] += 1;
} else {
$result[$technology] = 1;
}
}
}
var_dump($result);