Tag Info

Hot answers tagged

1

Your problem is that serialized strings contains escape slashes that are not evaluated as such, because the wrapping quote is a single quote. You are using: $v = 'a:2:{i:0;b:0;s:8:\"auto_add\";a:0:{}}'; // wrong You have to use either $v = "a:2:{i:0;b:0;s:8:\"auto_add\";a:0:{}}"; // ok or $v = 'a:2:{i:0;b:0;s:8:"auto_add";a:0:{}}'; // ok By the ...



Only top voted, non community-wiki answers of a minimum length are eligible