1
How do I create an attribute selected only in the current <select> that I have below? As we are in 2018, the <option> selected should be 2018.
<select>
  <?php
    $ano_atual = date("Y");
    for($i = 2014; $i <= $ano_atual; $i++) {
      echo "<option value=\"$i\">$i</option>\n";
    }
  ?>
</select>
						
Show, thank you Brow!
– Henrique