hello all I am trying to learn php. How can i make this if statement shorter. I am trying to make if statement that if $thisyear is less or more than $year by 1 or 2 or 3 than do something. <? $thisyear = date("Y"); $year = $_REQUEST['year']; ?> <select name="year"> <? if ($thisyear != $year && $thisyear != $year - 1 && $thisyear != $year - 2 && $thisyear != $year - 3 && $thisyear != $year + 1 && $thisyear != $year + 2 && $thisyear != $year + 3) { ?> <option title="<? echo $thisyear; ?>"><? echo $thisyear; ?></option> <? } ?> <option title="<? echo $year -3; ?>"><? echo $year -3; ?></option> <option title="<? echo $year -2; ?>"><? echo $year -2; ?></option> <option title="<? echo $year -1; ?>"><? echo $year -1; ?></option> <option selected value="<? echo $year; ?>"><? echo $year; ?></option> <option title="<? echo $year +1; ?>"><? echo $year +1; ?></option> <option title="<? echo $year +2; ?>"><? echo $year +2; ?></option> <option title="<? echo $year +3; ?>"><? echo $year +3; ?></option> </select> PHP: