Re: Passing an Array in the URL
| From: | Matt McClanahan | Date: | Thu, 26 Oct 2000 07:03:27 +0000 |
| Subject: | Re: Passing an Array in the URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-22073@lists.php.net to get a copy of this message | ||
On Wed, 25 Oct 2000, Matt wrote:
> How can I pass an array in the url? I remember there is some function that
> text econdes it and some other one that will decode into an array again.
I just answered this a minute ago. See the archives.
$param = urlencode(serialize($arr))
$arr = unserialize(urldecode($param))
Hmm. I may have reversed the functions in my previous post. :P In any
case, that's the correct order.
Matt