$array {
[0]=>
array(1) {
[0]=>
string(2) "28"
}
[1]=>
array(2) {
[0]=>
string(2) "28"
[1]=>
string(2) "29"
}
}
$filter {
[0]=>
string(2) "28"
[1]=>
string(2) "29"
}
foreach ($array as $item) {
$arResult = array_intersect($filter, $item);
}
<?php
$ar1 = [
[28],
[28, 29]
];
$ar2 = [28, 29];
$arRes = [];
$arResult = [];
foreach($ar1 as $arItems) {
foreach($arItems as $item) {
if(in_array($item, $ar2))
if(!isset($arRes[$item]))
$arRes[$item] = 1;
else
$arRes[$item]++;
}
}
$allAr1 = count($ar1);
foreach($arRes as $k => $v)
if($v >= $allAr1)
$arResult[] = $k;
print_r($arResult);