Re: Storing data structires in DB
| From: | John Nichel | Date: | Thu, 24 Mar 2005 21:55:46 +0000 |
| Subject: | Re: Storing data structires in DB | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211528@lists.php.net to get a copy of this message | ||
GamblerZG wrote:
Output of serialize() is barely readable and definetely is not suited for manual editing. It is quite simple to create var_export() clone that does not add junk to it's output. But then I would need to exec() the string to get a data structure back, which is bad security practice. Is there any good way to store/retrieve data structures (multidimetional arrays) to/from database?Huh? Why would you _manually_ edit a serialized array??? One would think you would UNSERIALIZE (http://us4.php.net/unserialize) the serialized array *before* working with the data. But that's just me. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com