<?php $string = '1-Test Response|9-DNC|'; $string = str_replace(['-', '|'], ['=', '&'], $string); // generates: 1=Test Response&9=DNC& parse_str($string, $result); var_export($result);
You have javascript disabled. You will not be able to edit any code.