$start = new DateTime('2013-11-30');
$end = new DateTime('2013-12-18');
// %a is the total; %d is only the day component and drops whole months
$days = (int) $start->diff($end)->format('%a');
$start = new DateTime('2013-11-30');
$end = new DateTime('2013-12-18');
// %a is the total; %d is only the day component and drops whole months
$days = (int) $start->diff($end)->format('%a');