Hi all,
First i'll explain what i am trying to achieve here.
I am building a shoping cart and was having troubles deleting (or more specifically) unsetting my session array.
If i print_r() i get the following results:
Array
(
[0] => Array
(
[0] => 1
[1] => 1
[2] => 0
[3] => 0
)
[1] => Array
(
[0] => 1
[1] => 1
[2] => 0
[3] => 0
)
[2] => Array
(
[0] => 3
[1] => 1
[2] => 0
[3] => 0
)
[3] => Array
(
[0] => 2
[1] => 1
[2] => 0
[3] => 0
)
)
If i echo $_SESSION['count_array'] i get 4 which is correct for the above.
My question is how do i unset a specific session array, for example, how do i unset the 2nd array eg:
[1] => Array
(
[0] => 1
[1] => 1
[2] => 0
[3] => 0
)
and leave the rest intact?
Cheers,
macca