and need to test IF one of the values is between $a and $b. And if more than one of the values is betwen $a and $b, need to take the higher.
One hour ago, I began to try, so far nothing positive unless long foreach and IF statements... There is probably a faster method?