So I have this JSON string:
"{"Jan": [5, 10, 15, 20] ,
"Feb":[20,10,"",22],
"Mar":[5,3,"",4],
"April":[10,"",1,2]
},
{"title":"Test Chart - Month v Value"}"
I am trying to extract the data so that I can access each one so that I can iterate through the array and sequentially output the data.
The best way I can think of is to simply create an array of arrays in PHP, store key and its values together and do a nested for loop. So the array should look like this:
[[Jan, 5, 10, 15, 20],[Feb, 20, 10, ,22], [Mar, 5, 3, , 4]]
Lastly I would like to know how to store this title value into its own variable.