This post was last edited by cnaaa8 on 2013-06-30 19:10:30
Existing an array, the contents of the array is indeterminate, so the method of discarding the implode partition array is converted to a string in the save, because the database encoding is GBK, the array is converted to JSON format is also discarded, JSON must be utf-8 format, If the conversion to JSON after converting to GBK with ICONV, insert the database, then in the read, iconv in the inverse of some data will be error, serialized words heard in the use of some arrays when the rice is serialized when the error, so also gave up, what other ways?
Reply to discussion (solution)
Serialization of Serialize
Serialization Serialize I've also considered serialization, but I've heard that when serializing some data, I get an error.
In addition, how to get 3 to 6 random data from an array, if not enough 3 to get all
Don't hear it, just go over it and find out.
Serialization comparison well, try it.