I have this:
$strVar = \"key value\";
And I want to get it in this:
array(\'key\'=>\'value\')
I tried
Try this
$str = explode(" ","key value"); $arr[$str[0]] = $str[1];