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 -- what's in the

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: ?php function show_elements($ary) { while(list($key,$val) = each($ary)) { echo "$key =