title: Auto increment years in loop every year
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5381330/how-to-increment-date-with-1-day-year-in-php">How to increment date with 1 (day/year) in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>Im not really sure where to begin with this but im trying to make a year start at 1928 and stop at 1948 and for every year the years increment by one so since its 2012 the date ranges are 1928 - 1948 and for 2013 it would be 1929 - 1949 and 2014 would be 1930 - 1950 and so on...</p>
  
  <p>right now i just have a basic loop for when to start and stop the years but its not too dynamic, like i said im pretty much at a blank on where to begin other then date('Y')+1.</p>
  
  <pre><code>for($i=1928;$i&lt;=date('Y');$i++)
  {
      echo '&lt;option value='.$i.'&gt;'.$i.'&lt;/option&gt;';
      if($i == '1948'){break;}
  }
  </code></pre>