Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if all values in array are equal

$allvalues = array('true', 'true', 'true');
if (count(array_unique($allvalues)) === 1 && end($allvalues) === 'true') {
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #values #array #equal
ADD COMMENT
Topic
Name
9+9 =