Php: Verilen iki tarih arasındaki günleri alma (Get days between two dates)

// Birinci yöntem (Php 5 >= 5.3.0)
$period = new DatePeriod(
     new DateTime('2010-10-01'),
     new DateInterval('P1D'),
     new DateTime('2010-10-05')
);

// İkinci yöntem
function dateRange($first, $last, $step = '+1 day', $format = 'd/m/Y' ) { 

    $dates = array();
    $current = strtotime($first);
    $last = strtotime($last);

    while( $current <= $last ) { 

        $dates[] = date($format, $current);
        $current = strtotime($step, $current);
    }

    return $dates;
}

Kaynak: http://stackoverflow.com/questions/4312439/php-return-all-dates-between-two-dates-in-an-array