title: how to default PHP generated date range to the current week
body: <p>I have the below syntax which populates a drop down box with week periods. it ranges from 3 months ago to 1 year ahead.</p>
  
  <pre><code>&lt;select id="period" name="period" onchange="updateperioddiv();"  class="tekwani-input-select"&gt; 
  
          &lt;?php
            for($i = 0; $i &lt;= 445; $i ++){
  
              $startdate = strtotime("today + $i day - 90 day");
              $enddate = strtotime("today + " . ($i + 6) . " day - 90 day ");
  
              if(date('D', $startdate) == 'Mon'){
  
                  echo '&lt;option'.' value="'. date('Y-m-d', $startdate) . ' "&gt;' .date('d M y', $startdate) . " to " . date('d M y', $enddate) . "&lt;/option&gt;";
              }
            }
          ?&gt; 
     &lt;/select&gt;
  </code></pre>
  
  <p>so this defaults to the 3 months ago, how can I get it to have the default selected as the current week?</p>
  
  <p>php fiddel <a href="http://phpfiddle.org/main/code/0ba-cqy" rel="nofollow">here</a></p>
  
  <p>Thanks,</p>