<?php $i = 28; $ranges = [[3, 10], [2, 20], [1, 30]]; $r = array_filter($ranges, function($a) use ($i){ return $a[0] < $i && $i < $a[1]; }); var_dump($r);
You have javascript disabled. You will not be able to edit any code.