PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $arFound = [ [ 733 => 733 ], [ 735 => 735, 736 => 736 ], [ 735 => 735, 736 => 736, 737 => 737 ], [ 736 => 736, 737 => 737 ] ]; foreach ($arFound as $k=>$ar_k) { foreach ($arFound as $j=>$ar_j) { $count_arr_k = count($ar_k); if ($k != $j && $count_arr_k == count(array_intersect_key($ar_k, $ar_j)) && $count_arr_k == count(array_intersect($ar_k, $ar_j)) ) { unset($arFound[$k]); } } } print_r($arFound);
Show:  
Copy Clear