I have this:
$strVar = \"key value\";
And I want to get it in this:
array(\'key\'=>\'value\')
I tried
Single line for ya:
$arr = array(strtok($strVar, " ") => strtok(" "));