P"); print(" ".strftime("%b %Y",mktime (0,0,0,$MM,1,$YYYY)).""); print("N"); print(""); print("Sun Mon Tue Wed Thu Fri Sat"); $currentDays = 1; for($a=1;$a$lastDay && $currentDays ==1 && ($diffDays1)){ for($x=$lastDay;$x>=0;$x--){ $printDays = $days-$x; print("$printDays"); } for($z=1;$z