Re: [PHP] Month with leading zeros

2008-05-11 Thread Jim Lucas
Jim Lucas wrote: Ron Piggott wrote: I am wanting to change echo " 'January', '2' => 'February', '3' => 'March', '4' => 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' => 'August', '9' => 'September', '10' => 'October', '11' => 'November', '12' => 'December'); $current_month =

Re: [PHP] Month with leading zeros

2008-05-11 Thread Jim Lucas
Ron Piggott wrote: I am wanting to change echo " 'January', '2' => 'February', '3' => 'March', '4' => 'April', '5' => 'May', '6' => 'June', '7' => 'July', '8' => 'August', '9' => 'September', '10' => 'October', '11' => 'November', '12' => 'December'); $current_month = DATE("n"); echo

Re: [PHP] Month with leading zeros

2008-05-10 Thread Casey
On 5/10/08, Ron Piggott <[EMAIL PROTECTED]> wrote: > I am wanting to change > > echo " > to output the month number, between 01 and 12 --- DATE value m, the > month with leading 0's. How do I do this? $months is an array, as I > have shown below. Ron > >$months = array('1' => 'Ja

Re: [PHP] Month with leading zeros

2008-05-10 Thread David Otton
> for ($i = 1; $i >= 12; $i++) I'm an idiot. for ($i = 1; $i <= 12; $i++) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Month with leading zeros

2008-05-10 Thread David Otton
2008/5/10 Ron Piggott <[EMAIL PROTECTED]>: > I am wanting to change > > echo " > to output the month number, between 01 and 12 --- DATE value m, the > month with leading 0's. How do I do this? $months is an array, as I > have shown below. Ron > > $months = array('1' => 'January', '2' =>