$ser = \'a:2:{i:0;s:5:\"héllö\";i:1;s:5:\"wörld\";}\'; // fails $ser2 = \'a:2:{i:0;s:5:\"hello\";i:1;s:5:\"world\";}\'; // works $out = unserialize($ser); $out2 = un
we can break the string down to an array:
$finalArray = array(); $nodeArr = explode('&', $_POST['formData']); foreach($nodeArr as $value){ $childArr = explode('=', $value); $finalArray[$childArr[0]] = $childArr[1]; }