title: PHP how to loop through an array and grab specific parts
body: <p>Ok so im trying to grab a single part of an array, the array is the return for some stats there can be up to 8 players in the server, the data i get is like this</p>
  
  <pre><code>Array (
   [0] =&gt; 1
   [1] =&gt; Player1
   [2] =&gt;
   [3] =&gt; 1
   [4] =&gt; 0
   [5] =&gt; 0
   [6] =&gt; 0
   [7] =&gt; 0
   [8] =&gt; 1
   [9] =&gt; Player2
   [10] =&gt;
   [11] =&gt; 1
   [12] =&gt; 0
   [13] =&gt; 0
   [14] =&gt; 0
   [15] =&gt; 0
  )
  </code></pre>
  
  <p>so that is the return for 2 players, as i said it can be up to 8, anyway i am trying to just grab the player names and im not sure how to go about it ( Player1 , Player2  ) is the only data i need, any help is appreciated, it always returns 8 pieces of data per player never more never less if that makes it easier</p>
  
  <p>(sorry for bad english)</p>