How can I parse a string of the following format into an associative array?
[ ["key1", "value1"], ["key2", "value2"], ["key3", "value3] ]
Into:
Array
(
["key1"] => "value1"
["key2"] => "value2"
["key3"] => "value3"
)
Thanks!
edit: The data is in a string format i.e:
$stringdata ='[ ["key1", "value1"], ["key2", "value2"], ["key3", "value3"] ]';