I have 2 variables which contain values. Here are the variables:
$a = "1a, 2a, 3a, 3a_oth, 4a, 4a_oth";
$b = "1, 1, 8, Port, 10, UNIX";
How can I combine both variables to get this?
$c = array('1a'=>'1', '2a'=>'1', '3a'=>'8', '3a_oth'=>'Port', '4a'=>'10', '4a_oth'=>'UNIX');
Assuming you have two string and want a third string, not an associative array: