in reply to localtime $mon
Simply create an array containing the months in order. You'll be able to reference them as $months[0] through $months[11], so to get the current month you should simply be able to refer to $months[$mon].