Good Day All,
Currently I'm using php to read a webpage which is solely a JSON array. The data is similar to this:
By using file_get_contents i can retrieve the above information but what is the easiest way to cycle through the entire list? SHould i be able to use some sort of $data['name'][1] or something like that?
Or is my best bet to use some complicated strpos and substr commands to try and isolate what I need?
Any help is greatly appreciated. Thanks!
Currently I'm using php to read a webpage which is solely a JSON array. The data is similar to this:
Code:
{
"data": [
{
"name": "name1",
"id": "4363523"
},
{
"name": "name2",
"id": "54725362"
},
{
"name": "name3",
"id": "646262"
}
. . .
]
}
By using file_get_contents i can retrieve the above information but what is the easiest way to cycle through the entire list? SHould i be able to use some sort of $data['name'][1] or something like that?
Or is my best bet to use some complicated strpos and substr commands to try and isolate what I need?
Any help is greatly appreciated. Thanks!