Re: Storing Arrays?

From: Date: Tue, 24 Feb 2004 14:05:31 +0000
Subject: Re: Storing Arrays?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-178695@lists.php.net to get a copy of this message
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

« previous php.general (#178695) next »