= $count)) { throw new Exception($parameterName . " is an invalid index"); } } public static function argumentInRangeInclusive($value, $min, $max, $parameterName) { if (($value < $min) || ($value > $max)) { throw new Exception($parameterName . " is not in the valid range [" . $min . ", " . $max . "]"); } } } ?>