Get next seven days list from Today using PHP

A PHP function that helps to get list of next days form current day. There are many way but I created one of best solution using  foreach and strtotime in-built PHP functions.

The above code returns result as following format:
MON 20
TUE 21
WED 22
THU 23
FRI 24
SAT 25
SUN 26

The list would then automatically regenerate itself every day, so that on the next day it would start on TUE 21 and go till MON 27.

Leave a Reply

Your email address will not be published. Required fields are marked *