Code: Select all
echo '<pre>Session:<br>';
print_r($_SESSION);
echo '</pre>';What I am trying to do is count all the values within the [ quantity ] part, so in this case, it would total upto 5... any ideas on how to do this?.Session:
Array
(
[cart] => Array
(
[idx] => 2
[0] => Array
(
[quantity] => 4
[product_id] => 1
[description] =>
)
[1] => Array
(
[quantity] => 1
[product_id] => 2
[description] =>
)
)
Thanks![/quote]