In PHP how can I quickly tell if all values in array are identical?
$myArray = array('1','1','1'); $results = array_unique($myArray); if(count($results) == 1) { echo"all value is duplicates"; } else { echo"all value is not duplicates"; }