Re: Flatten/Unflatten arrays

From: Date: Tue, 20 Apr 2004 08:27:49 +0000
Subject: Re: Flatten/Unflatten arrays
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-183926@lists.php.net to get a copy of this message
Orangehairedboy wrote: Hi, check out http://php.net/serialize and http://php.net/unserialize . hope this helps :-) -- red [...] > Hi all, > > In Perl there is a way to flatten an array into a string, and a matching > function to unflatten the array. > > This is different from explode/implode because the function supports > multidimentional arrays as well. > > The purpose is to be able to write an array to a flatfile, and when > necessary, read it in and it's in it's original form ready to use. > > Are there PHP functions which do the same thing? If not, has anyone ever > written functions to do this? [...]

« previous php.general (#183926) next »