Array
(
[0] => stdClass Object
(
[id] => 1
[price] => 1.00
[session_price] => 1.00
[no_of_participants] => 1
[session_id] => 1
[coupon_id] => 0
[group_discount_id] => 0
[order_id] => 1
[created] => 2015-04-02 16:56:24
[modified] => 2015-04-02 16:56:24
)
[1] => stdClass Object
(
[id] => 2
[price] => 2.00
[session_price] => 2.00
[no_of_participants] => 2
[session_id] => 1
[coupon_id] => 1
[group_discount_id] => 1
[order_id] => 1
[created] => 2015-03-03 00:00:00
[modified] => 2015-03-03 00:00:00
)
)
從上面我想總計no_of_participants
(即1 + 2 = 3
)。聯合陣列的結果的總和