I have this:
$strVar = \"key value\";
And I want to get it in this:
array(\'key\'=>\'value\')
I tried
I found another easy way to do that:
$a = array_flip(explode(' ', $strVal));