these are magical quotes, probably in response to such behavior. Thus, in order to perform non-serialization, you may have to do stripslashes () first:
if (get_magic_quotes_gpc()) $data = stripslashes($data);
although it is almost impossible to have magic_quotes in 5.2 ...
To say something specific, you need to find the difference between the original and returned data.
But anyway, why don't you use sessions instead of sending data to and from the browser? Sessions are really faster and safer.
source share