I have got a serialized array, and I need to replace double quotes in all places like this:
...s:30:"test "is" & test";...
to
...s:30:"test "is" & test";...
There can be a lot of quotes in the text, so can somebody help with it?
I have got a serialized array, and I need to replace double quotes in all places like this:
...s:30:"test "is" & test";...
to
...s:30:"test "is" & test";...
There can be a lot of quotes in the text, so can somebody help with it?
Try
preg_replace("/([^:])(\")([^;:])+/isU","$1"$3",$arr);