0

我有以下数组:

   [2865] => Array
        (
            [product] => 17
            [quantity] => 5
            [option_24] => 51
            [option_28] => 63
            [option_25] => 53
        )

    [2866] => Array
        (
            [product] => 17
            [quantity] => 5
            [option_24] => 51
            [option_28] => 63
            [option_25] => 53
        )

    [2867] => Array
        (
            [product] => 20
            [quantity] => 1
            [option_29] => 65
            [option_30] => 67
            [option_31] => 71
        )

现在我想添加那些数组具有相同值的数量。对于 eg- 数组28662867具有相同 options_ 值的数组(51,63,53)。所以我想添加这个数组的数量。

5 + 1 =6

4

0 回答 0