All pastes #1361536 Raw Edit

Someone

public text v1 · immutable
#1361536 ·published 2009-03-15 16:48 UTC
rendered paste body
function getDayRange($start, $stop) {
    $startTime = strtotime($start);
    $stopTime = strtotime('+1 week');
    while($startTime < $stopTime) {
        $output[] = $current = date('D', $startTime);
        if ($current === $stop) {
            return $output;
        }
        $startTime+=86400;

    }
}