Unserialize not working

Hi,

I need to unserialize the following serialized array but it doesn’t seem to work (just returns the same string).

Any ideas?


a:3:{i:1;s:7:"arsenal";i:2;s:9:"tottenham";i:3;s:7:"chelsea";}

I have tested on my system worked fine :-
$returnValue = unserialize('a:3:{i:1;s:7:“arsenal”;i:2;s:9:“tottenham”;i:3;s:7:“chelsea”;} ');
print_r($returnValue);

output :
Array ( [1] => arsenal [2] => tottenham [3] => chelsea )

Sorry the array should have been

s:62:“a:3:{i:1;s:7:“arsenal”;i:2;s:9:“tottenham”;i:3;s:7:“chelsea”;}”;

Does that work on your system as well?

can you tell us which array is being serialize ,so you getting this string …

It looks to me that this is array serialized to string, and then again serialized to string, so try

unserialize(unserialize('s:62:"a:3:{i:1;s:7:"arsenal";i:2;s:9:"tottenham";i:3;s:7:"chelsea";}";'));