Re: An array as an element of a function
| From: | Raquel Rice | Date: | Tue, 18 Nov 2003 15:32:33 +0000 |
| Subject: | Re: An array as an element of a function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-170114@lists.php.net to get a copy of this message | ||
On Tue, 18 Nov 2003 10:17:12 -0500
"Jeff McKeon" <jmckeon@telaurus.com> wrote:
> Is it possible to pass an array as an elemtent of a function??
>
> Something like this:
>
> $array1=array(1,2,3,4);
> $array2=array(a,b,c,d);
>
> Function Somefunction($var1,$var2)
> {
> someprocess using $array1 and array2;
> }
>
> Somefunction($array1,$array2);
>
> Or does something special have to be done?
>
> Thanks,
>
> Jeff
>
Jeff,
I pass arrays to functions and nothing special has to be done, so
long as your functions are expecting arrays.
--
Raquel
============================================================
Behavior is a mirror in which everyone displays his image.
--Johann Wolfgang von Goethe