I have some code that uses serialize to save array data to a MySQL database. It works great except that it blows up when the data contains doble quotes. Suppose a field has the word home
it is serialized as
s:4:"home"; (string four bytes long)
but "home" (with quotes) is serialized as
s:8:""home""; (string eight bytes long)
but since it is only 6 bytes long, unserialize = failed
I've tried html entities and add slashes and nothing works.
magic_quotes_gpc are ON