PHP array in $_SESSION - weird result
<p>can anyone explain this to me?:</p>

<pre><code>if (isset($_SESSION['pack'])){
   if (is_array($_SESSION['pack'])){
      foreach ($_SESSION['pack'] as $pack){
         //code
      }
   }
}
</code></pre>

<p>i get:</p>

<pre><code>Warning: Invalid argument supplied for foreach()
</code></pre>

<p>and if i do </p>

<pre><code>die(var_dump($_SESSION['pack']));
</code></pre>

<p>i get</p>

<pre><code>array(1) { [0]=&gt; string(2) "16" } 
</code></pre>

<p>i'm really going bonkers with this one, i need it ready for tonight and i'm stuck with this...</p>

<p>Thanks</p>
