<?php array_count_values(array $array): array
<?php $datasetValues[] = $values; } foreach (array_count_values($datasetDescriptions) as $descriptionToCheck => $count) { if ($count > 1) { $index = 1; foreach ($datasetDescriptions as $i => $datasetDescription) {