unserialize$str='a:1:{s:7:"choices";s:44:"1 = window 2003
2 = linux 789
3 = linux 54";} ';
print_r(unserialize($str));//Array ( [choices] => 1 = window 2003 2 = linux 789 3 = linux 54 )
2 = linux 789
3 = linux 54";} ';
print_r(unserialize($str));//Array ( [choices] => 1 = window 2003 2 = linux 789 3 = linux 54 )
json_encode/json_decode 这也行把