How do I reverse the order of the year display in this code for a select dropdown list?
<select required name="year" id="year">
<option value="" selected="selected"><span style="font-family: 'Open Sans', sans-serif;">Select Year:</span></option>
<?php
$y = Date('Y');
for ($i=$y-11; $i < $y+2; $i++) {
echo '<option value="' . $i . '">' . $i . '</option>' . "\n";
}
?>
</select>
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.