I'm serializing an object using serialize.js
, I get this string:
a:4:{s:8:"option-1";i:0;s:8:"option-2";i:1;s:8:"option-3";i:0;s:8:"option-4";i:0;};
When I run unserialize in PHP, I get
unserialize() [function.unserialize]: Error at offset 5 of 123 bytes
How can I fix this problem?