Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check if all values in array are equal php

if(count(array_unique($array)) === 1) {
    // all values in $array are the same
} else {
    // at least 1 value in $array is different
}
 
PREVIOUS NEXT
Tagged: #check #values #array #equal #php
ADD COMMENT
Topic
Name
8+4 =