0
值我都有以下通過一個JSON調用返回:得到嵌套的JSON數組
Array
(
[0] => Array
(
[so] => SO0040024
)
[1] => Array
(
[coid] => 4824
)
[2] => Array
(
[sdkstatus] => 7
)
[3] => Array
(
[sdkstatus] => pass
)
[4] => Array
(
[invoicenumber] => INV0063955
)
[5] => Array
(
[invoiceamount] => 9437.24
)
[6] => Array
(
[invoicestatus] => pass
)
[7] => Array
(
[invoicestatus] => fail
)
)
我如何提取每個值從數組中?例如我想要invoicenumber,INV0063955。
感謝, 瑞安
它爲什麼是多維的? Theres不需要。嘗試平整輸出,以便更容易地循環播放。 – 2014-08-29 10:11:34
爲什麼有些鍵會出現兩次,例如'sdkstatus'和'invoicestatus'? – Barmar 2014-08-29 10:13:11