Re: Session Array 2 dimensions
| From: | Eric Pignot | Date: | Thu, 22 Aug 2002 23:48:47 +0000 |
| Subject: | Re: Session Array 2 dimensions | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-113694@lists.php.net to get a copy of this message | ||
I am not sure this will reply to your question, but it is always worth to
know this : if you need to save complex data structures such as n-dimension
arrays, objects and so on in a cookie or in a DB, then there is a way to
convert the data structure into a string with the function serialize(); and
unserialize();
see :
http://www.php.net/serialize
cheers !
Eric
"Christian Ista" <christian.ista@teledisnet.be> a écrit dans le message de
news:
20020822205254.32632.qmail@pb1.pair.com...
>
> > You don't have to declare it - just use it:
> > $my_array[10][500]="foo";
>
> I talk about a session array. ($_SESSION)
>
> Bye
>
>