0

How To convert php object into array and parse that object containing number.

I have one JSON that contain number and i have tried to parse and convert it into array but I was unable to do so how can we parse such JSON and convert in into array. $object = "{"1":"aaaaaaaaa","2":"bbbbbbbbbbbbb","3":"cccccccccccc"}";

28th Aug 2017, 5:43 PM
NIrik Shan
NIrik Shan - avatar
1 ответ
+ 1
why do you need to convert it to an array? you can use foreach loop
28th Aug 2017, 5:48 PM
Yaroslav Pieskov
Yaroslav Pieskov - avatar