我是新來的php。我需要一些快速幫助json_decode/php。我需要在數組中獲得g91的值,我該怎麼做?我想有,我們可以傳遞給json_decode一些遞歸值...如何使用json_decode提取內部信息
{
"e": "none",
"f": "test",
"g": [
{
"g1": "text2",
"g9": {
"text3": {
"g91": 0,
"g92": [
"text5"
]
}
}
},
{
"g1": "text1",
"g9": {
"text4": {
"g91": 0,
"g92": [
"text6",
"text7"
]
}
}
}
]
}
請注意,文字3不fixed..in下一個記錄,我有文本4 ..
謝謝!
的[從JSON獲取信息] Dup的(http://stackoverflow.com/questions/3879472 /),[從JSON數組中獲取「得分」](http://stackoverflow.com/questions/8447084/) – outis