<?php parse_str("ref_1=000CBA0000&name_1=Produto%20A&quantity_1=1&ref_2=000CBA0000&name_2=Produto%20A&quantity_2=1&ref_3=000CBA0000&name_3=Produto%20A&quantity_3=1", $arr); foreach($arr as $key => $val){ $temp = explode("_", $key); $new[$temp[1]][$temp[0]] = $val; } var_dump($new);
You have javascript disabled. You will not be able to edit any code.