30秒到达战场
$base = [ [10 => 98, 11 => 1, 433438 => 8], [10 => 98, 11 => 1, 433438 => 1], [13 => 98, 11 => 2, 433438 => 8], [14 => 98, 11 => 2, 433438 => 1], [10 => 18, 11 => 1], [14 => 18, 11 => 2],];$invalid = [];for ($i = 0; $i <= count($base) - 1; $i++) { for ($j = 0; $j <= count($base) - 1; $j++) { $refCount = count($base[$j]); $interSectCount = count(array_intersect(array_keys($base[$i]), array_keys($base[$j]))); if (count($base[$i]) !== $refCount && $interSectCount === $refCount) { $invalid[] = $j; } }}foreach ($invalid as $item) { unset($base[$item]);}