I have N number of arrays (eg. 3 arrays):
$arr1 = array(0 => array( id => 34, score => 440),
1 => array( id => 32, score => 140),
2 => array( id => 22, score => 121),
3 => array( id => 99, score => 532)
);
$arr2 = array(0 => array( id => 32, score => 213),
1 => array( id => 34, score => 354),
2 => array( id => 22, score => 674)
);
$arr3 = array(0 => array( id => 34, score => 10),
1 => array( id => 22, score => 449),
2 => array( id => 99, score => 586),
3 => array( id => 32, score => 113),
4 => array( id => 16, score => 777)
);
我想根据(id)和(核心)来分类这些(N)阵列,但我要优先注意所有阵列中的重复发生,然后是最高分数的第二大优先事项,其结果将是(1) 过滤独特的阵列,根据这些规则,这些阵列具有独一无二之处。
我试图利用php<代码>usort功能通过比较功能,但我没有做这项工作。