PHP: Bug narrowed down to one line, can't figure it out
<p>So This part of my code:</p>

<pre><code>print_r($_SESSION['T']);
$T = array_values($data2);
print_r($_SESSION['T']);
</code></pre>

<p>Outputs this:</p>

<pre><code>Array ( [0] =&gt; NZL ) Array ( [0] =&gt; ENG [1] =&gt; NZL ) 
</code></pre>

<p>That line is the first time $T is declared. As far as I can tell there should be NO reason for  $_SESSION['T'] to gain an entry and its definitely causing me problems.<br>
Might be good to note that after that array_values call, the var $T looks like:  </p>

<pre><code>Array ( [0] =&gt; ENG [1] =&gt; NZL ) 
</code></pre>

<p>Which is what the second print of $_SESSION['T'] is displaying.</p>

<p>Let me know if you can think of any reason this might be happening, thanks</p>
