I have php var with multiple string values and numbers,
$string = 'Simple 12, Complex 16';
i explode this to an array, but i need to explode this string to be like below array.
Array(
[0] => Array(
[Simple] => 12,
[Complex] => 16
)
)
what is the perfect way to do this in php?