SyntaxFix
Write A Post
Hire A Developer
Questions
Here is my little contribution:
function inRange($number) { $ranges = [0, 13, 17, 24, 34, 44, 54, 65, 200]; $n = count($ranges); while($n--){ if( $number > $ranges[$n] ) return $ranges[$n]+1 .'-'. $ranges[$n + 1]; }