PHP invalid argument supplied in foreach
<p>I am trying to read out this nested array with a foreach loop but get an error "invalid argument supplied in foreach"        </p>

<pre><code>Array ( 
  [regenerated] =&gt; 1302668837 
  [id] =&gt; 2 
  [qty] =&gt; 1 
  [price] =&gt; 1200 
  [name] =&gt; support 
  [optione] =&gt; 
  [cart_contents] =&gt; Array ( 
                      [c4ca4238a0b923820dcc509a6f75849b] =&gt; Array ( 
                                                             [rowid] =&gt; c4ca4238a0b923820dcc509a6f75849b 
                                                             [id] =&gt; 1 
                                                             [qty] =&gt; 1 
                                                             [price] =&gt; 29.95 
                                                             [name] =&gt; Training DVD 
                                                             [optione] =&gt; 
                                                             [subtotal] =&gt; 29.95 
                                                           ) 
                      [c81e728d9d4c2f636f067f89cc14862c] =&gt; Array ( 
                                                             [rowid] =&gt; c81e728d9d4c2f636f067f89cc14862c 
                                                             [id] =&gt; 2 
                                                             [qty] =&gt; 1 
                                                             [price] =&gt; 1200 
                                                             [name] =&gt; support 
                                                             [optione] =&gt; 
                                                             [subtotal] =&gt; 1200 
                                                           ) 
                      [total_items] =&gt; 2 
                      [cart_total] =&gt; 1229.95 
                    ) 
  [johndoe] =&gt; audio 
  [totalItems] =&gt; 2 
) 

$cart_contentz = $_SESSION['cart_contents'];

foreach($cart_contentz as $itemz =&gt; $valuez) {

    foreach($valuez as $key1 =&gt; $value1) {

echo "$key1: $value1&lt;br&gt;"; 
}
</code></pre>
