Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check if array contains only unique values php

function array_has_dupes($array) {
   // streamline per @Felix
   return count($array) !== count(array_unique($array));
}
 
PREVIOUS NEXT
Tagged: #check #array #unique #values #php
ADD COMMENT
Topic
Name
1+3 =