title: Refactoring 2 similar if statements
body: <p>Would you write this code any differently? I don't mind tertiary operator by the way so any ideas that include it are also welcome</p>
  
  <pre><code>if ($stopYear &lt; $startYear) {
     for ($i = $startYear; $i &gt;= $stopYear; $i--) {
       $yearMultiOptions[$i] = $i;
     }
  } else {
     for ($i = $startYear; $i &lt;= $stopYear; $i++) {
       $yearMultiOptions[$i] = $i;
     }
  }
  </code></pre>