Get the number of days between two dates in PHP

$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');