Re: Sending Multi.Multi Diamentional Arrays
| From: | Matt McClanahan | Date: | Fri, 01 Sep 2000 20:42:48 +0000 |
| Subject: | Re: Sending Multi.Multi Diamentional Arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14874@lists.php.net to get a copy of this message | ||
On Fri, 1 Sep 2000, John Coggeshall wrote:
> I've got an array like so....
>
> array(data...data....,
> array(data.... data...,
> array(data data data)
> )
> )
>
> Now, I'd like to pass that array to another webpage -- is there any *simple*
> way to pass it? Assume that the tree has no limit (arrays in arrays in
> arrays)...
>
> I can't think of anything good that isn't ugly
urlencode(serialize($array)), send across however you like (Get, Post)
On the other end, unserialize(urldecode($array))
Or it may be possible to register it as a session variable and not worry
about serializing. I've never bothered to try it.
Matt