Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php get list of months by year

for ($m=1; $m<=12; $m++) {
     $month = date('F', mktime(0,0,0,$m, 1, date('Y')));
     echo $month. '<br>';
     }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #list #months #year
ADD COMMENT
Topic
Name
8+6 =