dpaschenko
4/17/2017 - 2:53 PM

http://stackoverflow.com/questions/3450022/check-and-return-duplicates-array-php https://www.w3schools.com/php/func_array_diff_assoc.asp

I Used:

$set2[] = '965190';
$set2[] = '965365';
$set2[] = '96605';
$set2[] = '966146';
$set2[] = '966146';

$set = array_unique(array_diff_assoc($set2,array_unique($set2)));

foreach($set as  $key =>  $row) {

echo $row."<br>";

}

//--------------------------------------------------------------------


function array_dup($ar){
   return array_unique(array_diff_assoc($ar,array_unique($ar)));
}