i have array with > 1000 values, array is simple
if i want to get max value i must to check all values in array in foreach or while
but how can i get max value from array like in sql
select max from array ,
or for example if i have associative array.
select max value from array where array[KEY]='some value'
something of this is possible with arrays or associative arrays ?