RE: [PHP] MySQL and PHP arrays
| From: | Messay W Asfaw | Date: | Mon, 10 Mar 2003 14:39:05 +0000 |
| Subject: | RE: [PHP] MySQL and PHP arrays | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138957@lists.php.net to get a copy of this message | ||
Serializing it would be the best way: seralize($myArray)
then you can get the array back using unseralize($serializedarray)
-----Original Message-----
From: {R}ichard Ashton [mailto:phpgeneral@semolina.org]
Sent: 10 March 2003 14:31
To: php-general@lists.php.net
Subject: [PHP] MySQL and PHP arrays
Is there a generally recommended way of storing an array created by PHP
in a MySQL database field ?
What type of field should it be, and how do you get the whole array
back in one go without reconstructing it row by row, if that is
possible?
{R}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php