Source Code:
(back to article)
<?php $arr = [1, 1, 1, 1]; if (count(array_unique($arr)) === 1) { echo "All values are the same"; } else { echo "Values are not the same"; }
Result:
Report an issue