Is there a simple way to check if all values in array are equal to each other?
In this case, it would return false:
$array[0] = 'yes';
$array[1] = 'yes';
$array[2] = 'no';
And in this case, true:
$array[0] = 'yes';
$array[1] = 'yes';
$array[2] = 'yes';
So, yeah, is there a function/method to check all array values at once?
Thanks in advance!