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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php