I have a string like the one below, including the parenthesis:
("string" "value" "string" "value" "string" "value" ...)
The number of quoted parts are unknown with a minimum of one pair, I would like to turn this into an associative array, my desired result is:
array('string'=>$value,'string'=>$value, 'string'=>$value)
How could I do this? Preferably, I would like to use a built-in function or a one liner or create a custom function, any help would be appreciated.