これから、、送料、およびパートナーの値を取得し、特定のパートナーごとに合計しArray()
たいと思います。amount_total
たとえば、partner=>2665
amount_total は 41.79 + 55.95 である必要があります。助けてください。データもそのまま必要なので、SQLを介して実行したくありません。
Array
(
[0] => Array
(
[amount_total] => 41.79
[amount_shipping] => 4.99
[amount_partner] => 14.8
[partner] => 2665
)
[1] => Array
(
[amount_total] => 55.95
[amount_shipping] => 19.96
[amount_partner] => 11
[partner] => 2665
)
[2] => Array
(
[amount_total] => 51.96
[amount_shipping] => 7.98
[amount_partner] => 23.98
[partner] => 51754
)
[3] => Array
(
[amount_total] => 24.55
[amount_shipping] => 4.99
[amount_partner] => 5.67
[partner] => 11513
)
)