Jump to content

how to generate a list of past months


ivytony

Recommended Posts

I am thinking of listing each month in the last 5 years. for example:

 

Jan 2003

Feb 2003

Mar 2003

....

Jan 2008

Feb 2008

Mar2008

 

This list should be dynamic in terms of showing the current month.

 

I've looked through the date manual on php.net but didn't find any hint on implementing this. Can someone pls help me out?

 

thanks ;)

Link to comment
https://forums.phpfreaks.com/topic/95892-how-to-generate-a-list-of-past-months/
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.