title: PHP assigning variables
body: <pre><code>$start  = $this-&gt;getWeekRange($date);
  $end    = $start-&gt;modify("+6 days");
  
  echo $start-&gt;format("Y-m-d");
  echo $end-&gt;format("Y-m-d"); 
  exit();
  </code></pre>
  
  <p>OUTPUT:</p>
  
  <pre><code>2013-12-08
  2013-12-08
  </code></pre>
  
  <p>it should be</p>
  
  <pre><code>2013-12-02
  2013-12-08
  </code></pre>
  
  <p>why is that both $start and $end has the same value? even though I've already assigned the value on the $start variable before modifying it then assigning it to $end.</p>