date - How can i get the current month and previous three months using PHP -


Will someone tell me how to use PHP in the current month and the last three months

For example :

Retro Date ("y: M: d");

will output: 09: October: 20

but I need it:

August

September

october

as output.

Thank you in advance ...

Fero

You need to pass "F" for the full text of the month :

  resonance date ("y: F: d");  

You can use

echoing date ("y: F: d", strtotime ("- 1 month"))

>;


Comments

Popular posts from this blog

MySql variables and php -

c# - How can I find out if there are windows above a control? -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -