PHP: Check to see if all the values in an array are less than x

Viewed 8332

Is there a function to do this?

For example if I have an array like 1,1,3,2,1,2,3,2,2,3,3,2,5,1 The function should return true if and only if all the numbers in the array are less than 5

6 Answers
Related