Jump to content

Some date loop help


dhimok

Recommended Posts

I want to loop between this two timestamps

 


$start = 1136070000; // this is Jan 2006
$end = 1188772144; // this is Sep 2007

for() {
echo date("M Y");
}

 

If I loop like above I will get endless results which is not good. I want to get all months between those 2 dates

Link to comment
https://forums.phpfreaks.com/topic/68355-some-date-loop-help/#findComment-343730
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.