{
"something":"not important;",
"something2":"less important",
"something3":"inexistent",
"something4":"nothing",
"something5":{
"1232":{ // this value is dynamic
"NeedToEchoThis":1230,
"NeedToEchoThis2":"12343",
"NeedToEchoThis3":22222,
}
},
"something6":"else",
"something7":"0"
}
When using json_decode, I get that array. But... how to echo the values within "something5" since it has a dynamic value right next to it? I tried using
$var1 = $obj->something5[0]->NeedToEchoThis;
But... still doesn't work. Any ideas?