A two-dimensional array of the list of participants
$arr1=array(
array('name'=>'Zhang San','phone'=>'1354459845','address'=> ;'No. 5, First Street'),
array('name'=>'李思','phone'=>'1323439845','address'=>'No. 3, First Street'),< br>array('name'=>'Chen Wu', 'phone'=>'1354353145', 'address'=>'No. 2, First Street'),
);
A two-dimensional array of historical lottery winning lists
$arr2=array(
array('name'=>'mary', 'phone'=>'1313598445', 'address'=> 'No. 8, First Street'),
array('name'=>'jhon', 'phone'=>'1323298425', 'address'=>'No. 9, First Street'),
array('name'=>'Chen Wu', 'phone'=>'1353dsad45', 'address'=>'No. 10, First Street'),
);
Now we need to compare these two An array, as long as one of the names name, phone or address appears in the historical list, he will be removed from the arr1 participating activity list.
In addition to two foreach comparisons, is there any good way to quickly get the filtered activity list results? Both lists are at least several thousand. If you use foreach twice, the speed will be very slow