RE: [PHP] Passing array to function

2002-08-13 Thread Ford, Mike [LSS]
> -Original Message- > From: Bill Hudspeth [mailto:[EMAIL PROTECTED]] > Sent: 13 August 2002 17:10 [] > DESIRED FUNCTION VERSION > > > > $elementname="cgroup_1[]"; > > $elementsarray=$chon_group_a; > > PrintOptionBox($elementname,$elementsarray); Well, looks ok-ish so far -- wh

[PHP] Passing array to function

2002-08-13 Thread Bill Hudspeth
I am trying to write a function that builds a multiple-choice drop down list. As such, I need to specify an array in the name attribute of the tag. I am trying to pass a parameter to the function which gets used as this name attribute, but seem to be having problems with the square brackets. In t

Re: [PHP] passing array to function?

2001-02-06 Thread David Robley
On Wed, 7 Feb 2001 11:30, Jaxon wrote: > How do you write a function that takes an array as an argument? > > Could someone please point me at an example? > > Regards, > Jaxon Try this: $val"; } } $fruits=array("a"=>"apple","b"=>"banana","c"=>"cucumber","d"=>"apricot",); show_e

[PHP] passing array to function?

2001-02-06 Thread Jaxon
How do you write a function that takes an array as an argument? Could someone please point me at an example? Regards, Jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admin