0
Array (
[0] => Array (
[0] => Array (
[subject] => Computer [price] => 33.00
[quantity] => 1
[total] => 33
[level] => Array (
[CSA] => 1
[CSB] => 2
)
)
)
[1] => Array (
[0] => Array (
[subject] => English
[price] => 33.00
[quantity] => 25
[total] => 825
[level] => Array (
[Eintro] => 1
[EA] =>
[EB] => 1
)
)
)
夥計們,我有一個像上面的會話購物車數組。如何刪除項目如果主題計算機和價格,數量,總計和相關的主題計算機的水平。從會話購物車陣列中取消設置會話項目數組
我知道我必須使用未設置的SESSION。但是,如何僅將計算機行的會話數組取消並且不會影響購物車中的其他物品數組?
var_export($session_cart);
array (
0 => array (
0 => array (
'subject' => 'Computer',
'price' => '33.00',
'quantity' => 1,
'total' => 33,
'level' => array (
'CSA' => '1',
'CSB' => '2',
),
),
),
1 => array (
0 => array (
'subject' => 'English',
'price' => '33.00',
'quantity' => 25,
'total' => 825,
'level' => array (
'EA' => '1',
'EB' => '1',
),
),
),
您可以發佈var_export(yourarray $)的'輸出;',而不是'的print_r(yourarray $);'? –
我用var_export的輸出更新了問題 – user3322610