Storing data structires in DB
| From: | GamblerZG | Date: | Thu, 24 Mar 2005 21:15:16 +0000 |
| Subject: | Storing data structires in DB | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211523@lists.php.net to get a copy of this message | ||
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?