I have this:
$strVar = \"key value\";
And I want to get it in this:
array(\'key\'=>\'value\')
I tried
Another single line:
parse_str(str_replace(' ', '=', $strVar), $array);