There are a number of ways to gather a series of dates. Here are three different code snippets which all produce the same array (see below the code) but are written using different tools.
Note on "sunday last week"
All of the snippets use a string to determine the Sunday at the beginning of this week which may be confusing! If today is Sunday, the string will mean today and not "last Sunday" as you might first assume. This has to do with how strtotime (and the underlying C function get_date) parses such strings. Using Sunday June 28th as an example, "Sunday" means the next Sunday from now (ie, July 5th) and "last week" means take away a week from that Sunday (ie, June 28th).
Onto the snippets. Note that the first two have been formatted to behave more like the third and may not be how one would normally approach this with basic loops and date functions.
// Plain old functions $begin = strtotime('sunday last week'); $interval = '+1 day'; $period = 6;