Why is my userid getting cut off?
<p>In the array below, you'll see <code>userId = 16</code>. However, when I run a <code>foreach</code> loop, it returns <code>userId = 1</code>. Why is it returning <code>1</code> and not <code>16</code>?</p>

<pre><code>Array
(
    [userId] =&gt; 16
    [positionTitle] =&gt; Array
        (
            [0] =&gt; j1
            [1] =&gt; j2
        )

    [company] =&gt; Array
        (
            [0] =&gt; c1
            [1] =&gt; c2
        )

    [jobDescription] =&gt; Array
        (
            [0] =&gt; d1
            [1] =&gt; d2
        )

    [startDate] =&gt; Array
        (
            [0] =&gt; 03/01/2013
            [1] =&gt; 03/03/2013
        )

    [endDate] =&gt; Array
        (
            [0] =&gt; 03/02/2013
            [1] =&gt; 03/04/2013
        )

    [jobCity] =&gt; Array
        (
            [0] =&gt; city1
            [1] =&gt; city2
        )

    [jobState] =&gt; Array
        (
            [0] =&gt; state1
            [1] =&gt; state2
        )

)
</code></pre>

<p>Loop code:</p>

<pre><code>foreach($updates as $key =&gt; $value){
    echo $key . " " . $value[0] . "&lt;br/&gt;";
}
</code></pre>

<p>Sample output:</p>

<pre><code>userId 1
positionTitle j1
company c1
jobDescription d1
startDate 03/01/2013
endDate 03/02/2013
jobCity city1
jobState state1
</code></pre>
