Array
(
[0] => Array
(
[0] => round
[1] => EX
[2] => D
[3] => 3.6
[4] => IF
[5] => IGI
[6] => G
[7] => G
[8] => id01
[9] => FNT
[10] => 0.8
[11] => 47
[12] => xy01
[13] => india
)
[1] => Array
(
[0] => round
[1] => EX
[2] => D
[3] => 3.6
[4] => IF
[5] => IGI
[6] => G
[7] => G
[8] => id01
[9] => FNT
[10] => 0.8
[11] => 47
[12] => xy01
[13] => india
)
)
Array
(
[0] => 150
[1] => 150
)
這兩個數組的我有,當我點擊更新Cart按鈕在笨車... 在這兩個數組第一陣列說明的是兩種不同的產品和第二陣列的價格是兩個產品...首先價是第一個產品和第二價格是其次的產品......如何存儲在代碼點火車兩個不同陣列的?
現在我想通過一個該兩款產品在購物車一個存儲...我的意思是,在第一,產品儲存在車用各自的價格,然後第二個產品的價格..
而我想存儲這個數組在特定的數組索引..
這是數組的索引..
shape
cut
color
carat
clarity
lab
polish
symmetry
stone_id
fluorescence
lwratio
depth
cert_no
location
price
第一個產品與該數組中的價格存儲,然後在車...同樣第二..
的http:// stackoverflow.com/documentation/php/5727/array-iteration#t=201701161237085819865 – Learner