How to look through multiple arrays?
<p>I have an array that looks like this?</p>

<pre><code>Array ( [0] =&gt; 15 [id] =&gt; 15 ) 
Array ( [0] =&gt; 16 [id] =&gt; 16 )
</code></pre>

<p>I was wondering how can I know one from each other, if I want to echo the values separately?</p>

<pre><code>$getid = mysql_query($query);
while ($get_id = mysql_fetch_array($getid)){
    print_r($get_id);
}
</code></pre>

<p>any ideas? </p>

<p><strong>edit</strong>:</p>

<p>If I <code>echo $get_id['id'].', ';</code> I will get <code>15, 16</code>. What I want is to be able to echo them separately.</p>

<p>or the arrays to become:</p>

<pre><code>Array ( [0] =&gt; 15 [id] =&gt; 15 ) 
Array ( [1] =&gt; 16 [id] =&gt; 16 )
</code></pre>

<p><strong>edit 1</strong>: I figured it out:</p>

<pre><code> $i = 0;
 $getid = mysql_query($query);
 while ($get_id = mysql_fetch_array($getid)){
     $test[$i] = $get_id;
     $i++;
 }
</code></pre>
