codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $months = array(); $currentMonth = (int)date('m'); for($x = $currentMonth; $x >=$currentMonth-12; $x--) { $months[date('F', mktime(0, 0, 0, $x, 1))] = 0; } echo "<pre>"; print_r ($months); ?>
Private
[
?
]
Run code
Submit