I have a multi-dimensional array consisting of (a) description, (b) the minimum number of years and (c) the maximum number of years:
$years_array = array(
array("Any", 0, 255),
array("New", 0, 1),
array("5 - 10yrs", 5, 10),
array("10 - 20yrs", 10, 20)
);
Given both the minimum $min and maximum $max number of years, how do I match it to give the description $description in the array?
Example:
$min = 5, $max = 10 => $description = "5 - 10yrs";
Quick, dirty and just for showing a possibility…
I suppose you need an exact match