Someone
public text v1 · immutablefunction 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;
}
}