I'm able to fill an array with the date of every Monday for the next 4 weeks. The problem is when 12am Monday hits, it immediately shifts the dates forward one week. I don't want it to do that until the the end of Monday, like on Tuesday at 12am. Any thoughts?
$start = strtotime( "next monday" );
$end = strtotime( "+4 weeks", $start );
while ( $start < $end ) {
$dates[] = date( "D, M d", $start );
$start = strtotime( "+1 week", $start );
}
Maybe I can leave the array and just change it when I echo them? This is what I'm doing now.
<h3><?php echo $dates[0]; ?></h3>
<p></p>
<h3><?php echo $dates[1]; ?></h3>
<p></p>
and so on