Re: An array as an element of a function

From: Date: Tue, 18 Nov 2003 15:30:22 +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-170115@lists.php.net to get a copy of this message
Jeff McKeon wrote:
Is it possible to pass an array as an elemtent of a function?? Yes
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); This is the right way.
Or does something special have to be done? No.
Thanks, Jeff
You could have tried it yourself.

« previous php.general (#170115) next »