title: Getting the previous and next 7 days from a specific date in PHP?
body: <p>Getting the previous and next 7 days from a specific date </p>
  
  <pre><code>$date = new DateTime();
  $today = $date-&gt;format('m d, Y');
  </code></pre>
  
  <p>How can I get the previous 7 and next 7 days from $today? and loop them in an array.</p>