Re: [PHP] list of Months

2004-10-01 Thread Paul Bissex
On Fri, 01 Oct 2004 10:30:19 +0200, Marek Kilimajer <[EMAIL PROTECTED]> wrote: > What about dumping the $month_names array and using strftime()? Interesting -- more portable since the month names would then follow locale settings. Plus it paves the way for a really hairy one-liner. With apologies

Re: [PHP] list of Months

2004-10-01 Thread afan
Well, looks like the idea is alway the same, with some (very usefull) variations. Thanks for help! Afan > [EMAIL PROTECTED] wrote: >> Hi, >> to create a list of all months in drop-down menu I use this code: >> >> > $month_names = array(1=>'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', >> 'Au

Re: [PHP] list of Months

2004-10-01 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: Hi, to create a list of all months in drop-down menu I use this code: 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); ?> $i "; } ?> What about dumping the $month_names array and using strftime()? -- PHP General Mailing List (http://w

Re: [PHP] list of Months

2004-09-30 Thread Tom Rogers
Hi, Friday, October 1, 2004, 6:16:46 AM, you wrote: aan> Hi, aan> to create a list of all months in drop-down menu I use this code: aan> $month_names = array(1=>'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', aan> 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); ?>> aan> aan> aan> for($i=1; $i<=12; $i++

Re: [PHP] list of Months

2004-09-30 Thread Paul Bissex
On Thu, 30 Sep 2004 22:16:46 +0200 (CEST), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > to create a list of all months in drop-down menu I use this code: > > $month_names = array(1=>'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', > 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); > ?> > > > > for

RE: [PHP] list of Months

2004-09-30 Thread Graham Cossey
;m sure if there is a better way then someone here will let u know. HTH Graham -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 30 September 2004 21:17 To: [EMAIL PROTECTED] Subject: [PHP] list of Months Hi, to create a list of all months in drop-down menu I use

Re: [PHP] list of Months

2004-09-30 Thread Pahlevanzadeh Mohsen
You can do it: " for ($i=1;$i<13;$i++) { echo "$month[$i]"; } echo --- [EMAIL PROTECTED] wrote: > Hi, > to create a list of all months in drop-down menu I > use this code: > > $month_names = array(1=>'Jan', 'Feb', 'Mar', 'Apr', > 'May', 'Jun', 'Jul', > 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')

[PHP] list of Months

2004-09-30 Thread afan
Hi, to create a list of all months in drop-down menu I use this code: 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'); ?> $i "; } ?> Is there any better way? Thanks for any help. Afan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi