I have an array of values I want to store in a MySQL db in a column called readBy of type TEXT. I want to take that array and serialize it then insert it into the db. No big deal. When I query the db and get the value from the readBy column, I know I have to unserialize it. Again, no big deal.
My question about all of this is once I unserialize the data from the column, can I immediately use the array_push() function to append additional data to the unserialized data? Will the unserialized data immediately be recognized/treated as an array? Also, is the TEXT dolumn type an appropriate column type to store serialized data or is there another column type that should be used? Lots of questions I know. Just wanted to make sure that it's really as easy as unserialize() then array_push() with nothing else required. Thanks in advance. Rich -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php