print_r($getPrice)结果是:
Array
(
[0] => Array
(
[price_id] => 5
[price_qty] => 2
[price] => 100.0000
)
[1] => Array
(
[price_id] => 6
[price_qty] => 5
[price] => 90.0000
)
[2] => Array
(
[price_id] => 7
[price_qty] => 8
[price] => 80.0000
)
)
我想循环出 [price_qty] 和 [price] 的值,对不起,我是 php 的新手,我不知道如何使用 foreach 来输出它们的值。