[ create a new paste ] login | about

Link: http://codepad.org/3HJmjAu7    [ raw code | output | fork ]

PHP, pasted on Aug 8:
1
2
3
4
5
<?php

for($i=-4; $i<=12; $i++) {
    echo date("F",strtotime(($i > 0) ? "+$i months" : "$i months"))."\n";
}


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
April
May
June
July
August
September
October
November
December
January
February
March
April
May
June
July
August


Create a new paste based on this one


Comments: