Fairly simple… Just use the date and strtotime functions. You can use them to create any type of calendar info such as … Third Monday of the month, first day of the month, second saturday in may, just about anything.
Here is a sample for 5 days from current date…
echo “5 days from today is: " . date(“Y-M-d”, strtotime(”+ 5 days " . date(“Y-M-d”)));
3rd Monday in THIS month:
echo "Third Monday of this month is: " date(“Y-M-d”, strtotime("third monday " . date(“Y-m-t”, strtotime(“last month”))));
So, to use this format, you would just include your count variable to alter so many days…
Something like this: (Not tested…)
echo “5 days from today is: " . date(“Y-M-d”, strtotime(”+ " . $i . " days " . date(“Y-M-d”)));
That should work for you… Good luck…