I have an array of strings with a format of key: value like this:
Array
(
[0] => label: productlabel
[1] => timezone: SDT
[2] => price: 0.2225
[3] => reserve: 60
)
I need to create an associative array with the key part as the array element index and value part as the array element value, like this:
Array
(
[label] => productlabel
[timezone] => SDT
[price] => 0.22255
[reserve] => 60
)
Is there a shorter way or a function to create this, or I need to make it manually with basic control structures?