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 -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -