I am currently trying (for the first time) to build a shopping cart.
Most of the cart is complete, except for the total price.
I have a multidimensional array in a session that looks like this.
Array (  => Array (  => 23  => 11.32.097.  => 635  => 2  => 89 )  => Array (  => 800  => 20.40.017.  => 100  => 1  => 125 ) )
The 4th key contains the price. I want to count all the sub-arrays 4th key value en count them together to get a total prics.
I tried doing this with foreach loop but i’m not a great fan of for loops.
If you have some time can you please take a look at it.
Thanks in advance,