title: Echo Session Object in Foreach Loop
body: <p>Here is my issue.</p>
  
  <p>Session Array:  </p>
  
  <pre><code>$_SESSION['cart'][$item_id] = array('Quantity' =&gt; $item_quantity,
          'Price' =&gt; $item_total,
          'Item' =&gt; $item_id,
      );
  </code></pre>
  
  <p>Foreach Loop:</p>
  
  <pre><code>foreach($_SESSION['cart'] as $key =&gt; $value)
  {
  echo $key['Quantity'];
  </code></pre>
  
  <p>I am trying to access Quantity or Item with my foreach. What am I doing wrong? Currently nothing is showing when I echo $key['Quantity], but it does echo the $item_id when I do echo $key</p>