Da. It will create a 3D array, so you would reference the data via:

echo $_GET["myarray"][0];
// returns "one";
echo $_GET["myarray"][1];
// returns "two";
...

Or, if you put this in a form, use _POST instead of _GET.

----- Original Message ----- 
From: "wm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 1:49 PM
Subject: [PHP] passing arrays


hi,

is there a way to pass arrays in forms or in the url?

if i have $myarray=array("one","two","three");

can i pass the whole array at once as opposed to having to pass each
individual element?

thanks.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to