-6
我有多維數組,從數據庫genereted,想一些ITM2 + itm3爲每個陣列,並獲得總喜歡多維數組:PHP獲取每個多維數組的結果分離
array 5 = 1740
array 6 = 2700
這是我的多維陣列的一部分:
$arrays = Array
(
[5] => Array
(
[0] => stdClass Objectd(
[itm1] => 19
[itm2] => 500
[itm3] => 100
)
[1] => stdClass Object(
[itm1] => 20
[itm2] => 700
[itm3] => 100
)
[2] => stdClass Object(
[itm1] => 21
[itm2] => 240
[itm3] => 100
)
)
[6] => Array(
[0] => stdClass Object(
[itm1] => 22
[itm2] => 1500
[itm3] => 100
)
[1] => stdClass Object(
[itm1] => 23
[itm2] => 1000
[itm3] => 100
)
)
)
你有什麼試過?你得到了什麼錯誤?如果沒有顯示錯誤,請發佈您的PHP錯誤日誌。謝謝 –
嗨馬克,我是新來的PHP,發現很難得到這個結果:) –
很難幫助你解決問題,如果沒有什麼是壞的 –