title: PHP: How to get Sunday and Saturday given a date input?
body: <p>How can I get the Sunday and Saturday of the week given a specific date?</p>
  <p>For example:</p>
  <blockquote>
  <p>input: Monday, September 28, 2009</p>
  <p>output should be:</p>
  <p>Sunday, September 27, 2009 12:00 AM - Saturday, October 3, 2009 11:59 PM</p>
  </blockquote>
  <p>I am thinking of using the <code>date</code>, <code>strtotime</code>, <code>mktime</code> and <code>time</code> php functions.</p>
  <p>If you have a usable function then it is also fine with me.</p>
  <p>Thanks in advance :)</p>
  <p>Cheers,
  Mark</p>