how to check value duplicate array in php code example
Example: check duplicate data in array php
$counts = array_count_values($array);
$duplicate_title = array_filter($array, function ($value) use ($counts) {
return $counts[$value] > 1;
});