Re: multi-dimensional array

From: Date: Thu, 06 Dec 2001 01:33:36 +0000
Subject: Re: multi-dimensional array
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-76813@lists.php.net to get a copy of this message
At 03:41 PM 12/5/2001 -0500, Jordan wrote:
Is there any way to pass a multi-dimenstional through a url. something like /cart.exe?item[1][1]=3 just curious. -Jordan
I haven't personally done this myself, but theoretically you could accomplish this by first using the serialize function: http://www.php.net/manual/en/function.serialize.php Then using url_encode on the results and passing that in the URL parameter. Then on the other page you want to unserialize it: http://www.php.net/manual/en/function.unserialize.php I haven't personally used this function for anything yet, but it looks like it should work fine...

« previous php.general (#76813) next »