// By iterating over the DatePeriod object, all of the// recurring dates within that period are printed.// Note that, in this case, 2012-07-01 is not printed.foreach ($period as $date) { echo $date->format('Y-m-d')."\n";}?>