$arr1 = [
['number' => '1001', 'empno' => '9991','title'=>'财务'],
['number' => '1001', 'empno' => '9992','title'=>'财务'],
['number' => '1002', 'empno' => '9991','title'=>'财务'],
['number' => '1002', 'empno' => '9992','title'=>'财务'],
['number' => '1001', 'empno' => '9990','title'=>'财务']
];
$arr2 = [
['number' => '1001', 'empno' => '9991','title'=>'财务'],
['number' => '1001', 'empno' => '9992','title'=>'财务'],
['number' => '1002', 'empno' => '9991','title'=>'财务'],
['number' => '1002', 'empno' => '9992','title'=>'财务']
];
如有以上两组数组,就如唯一键值一样,number与empno不能出现同一组为重复的数组,以上$arr1,最后一位元素为差集元素(['number' => '1001', 'empno' => '9990','title'=>'财务']),就是不相同的元素。请问怎么用除了套用两个foreach外快速的查找出来呢
呼啦一阵风