Answers for "check if array contains only unique values php"

PHP
0

check if array contains only unique values php

function array_has_dupes($array) {
   // streamline per @Felix
   return count($array) !== count(array_unique($array));
}
Posted by: Guest on January-06-2022

Code answers related to "check if array contains only unique values php"

Browse Popular Code Answers by Language