$start = $this->getWeekRange($date);
$end = $start->modify("+6 days");
echo $start->format("Y-m-d");
echo $end->format("Y-m-d");
exit();
OUTPUT:
2013-12-08
2013-12-08
it should be
2013-12-02
2013-12-08
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.
var_dump($start, $end);