There are dynamic data from the user, which on the server must be checked for occurrence in a particular range and, depending on this, output a different result.
It only occurs to me (conditional example):
if($var < 1000) { do one } else if ($var < 2000) { do two } else if ($var < 3000) { do three } .... и т.д. Tell me how to simplify this design?