Checking all array values at once

ublbcmls

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