array - too stupid
| From: | andreas \(@work\) | Date: | Sun, 18 Feb 2001 20:26:37 +0000 |
| Subject: | array - too stupid | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-40467@lists.php.net to get a copy of this message | ||
hi,
how can i store an array in mysql ?
what i do now ( works fine )
========================
a) transform the array to a § delimeted string
// $tempItem is a § dlimited string example: 4321§117§A123§42WQ§1243
b) $tempItem = serialize($tempItem);
c) store it in mysql-table
and i get my array back with
d) $myItems = explode("§",unserialize($myValueFromDB));
but i think theres an easier way out there
any solutions
greetings
andreas