I am trying to convert the key values of an array into a multi-dimensional array. The key values look to be multidimensional, but are just text. I have tried exploding the the string and creating a new array, but I feel there must be something simpler than just that.
Example Below:
Array (
[Template[URL]] => http://www.asdasdda.com
[Template[UPC]] => 5484548546314
[Field[value]] => Test Example
[Field[answer]] => 20 )
All help is very much appricated. :)
UPDATE: This is the exact output of the data before I run json_decode on the data.
{"Template[URL]":"http://www.asdasdda.com","Template[UPC]":"5484548546314","Field[value]":"Test Example","Field[answer]":"20"}