Re: Hashes in text files

From: Date: Fri, 03 May 2002 08:32:53 +0000
Subject: Re: Hashes in text files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95842@lists.php.net to get a copy of this message
On Fri, 3 May 2002, Rodrigo wrote: > Can I store Hashes in text files? If yes, how? > > Can I store a multi dimensional array in a text file? If not how should > I do to store the data in one file and the "pointer" in another file? http://php.net/serialize That function will turn any PHP data structure into something you can safely write to a file. Use unserialize to turn it back into its original form. However, based on what you plan to do, it seems like a database would be a lot less work and a lot more efficient. miguel

« previous php.general (#95842) next »