What is the shortest, simplest code to generate the curent month in Full English like September or in abbreviated three letter version like Feb and then add the current Year 2011?
So the code will, depending on the month and year, echo things like:
August 2016 or Aug 2016 etcettera. Thanks!
Full version:
Short version:
Here is a good reference for the different date options.
update
To show the previous month we would have to introduce the mktime() function and make use of the optional
timestampparameter for the date() function. Like this:This will also work (it’s typically used to get the last day of the previous month):