I guess my question would be better phrased:
If I know the age as in years: 26, how do I match it to 20-29 group key?
It'll be silly to do for each group:
if (20 > $age > 29) {
$key = '20-29';
}
I just thought there's a better way of doing it.
I can re-write the array, how should it look then?