Check if all values in array are the same

decoded

New Member
I need to check if all values in an array equal the same thing.Example:\[code\]$value1 = 'true';$value2 = 'true';$value3 = 'true';$allvalues = array("$value1","$value2","$value3");\[/code\]If everything in the $allvalues equals 'true' then it would echo 'all true' If any value in the $allvalues equals 'false' then it would echo 'some false'Any idea on how I do this?
 
Back
Top