I have this JSON file.
{
"2438": {
"open": false,
"tag": "borci1",
},
"2210": {
"open": false,
"tag": "Jeskinky",
},
}
I know how to get eg. "tag" or "open", but how can I get "2438" and "2210" ?
I have this JSON file.
{
"2438": {
"open": false,
"tag": "borci1",
},
"2210": {
"open": false,
"tag": "Jeskinky",
},
}
I know how to get eg. "tag" or "open", but how can I get "2438" and "2210" ?
after parsing json with json_decode
use foreach
foreach($json as $key=>$value)
{
//$key is the index of array
}