Re: Storing Arrays?
| From: | Jakes | Date: | Tue, 24 Feb 2004 14:11:59 +0000 |
| Subject: | Re: Storing Arrays? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178696@lists.php.net to get a copy of this message | ||
rather just serialize() it. didnt read your question properly
"Jakes" <sunsoffun@hotmail.com> wrote in message
news:20040224140631.54553.qmail@pb1.pair.com...
> depending how long you want to keep it, wrap the array in a object and
> then serialize the object in a session variable.
>
> "Nick Wilson" <nick@stylesheet.org> wrote in message
> news:20040224112234.GA13904@stylesheet.org...
> >
> > * and then Jay Blanchard declared....
> > > [snip]
> > > If I wanted to store an array for future use in a MySQL TEXT Column
> > > (dont ask, it's complicated... hehe!) how would I go about it?
> > >
> > > I thought of just putting the results of print_r($myarray); into the
> > > text field and using eval() to get at it later... is that the right
way
> > > to go?
> > > [/snip]
> > >
> > > Yes, that is certainly one right way to go.
> >
> > Actually, serialize() would be better suited I think, but thanks...
> >
> >
> > --
> > Nick W