In PHP how can I quickly tell if all values in array are identical?
You can use the test:
count(array_unique($arr)) == 1;
Alternatively you can use the test:
$arr === array_fill(0,count($arr),$arr[0]);