title: Split array into two arrays by index even or odd
body: <p>I have this array:</p>
  
  <pre><code>$array = array(a, b, c, d, e, f, g);
  </code></pre>
  
  <p>I want to split it in two arrays depending if the index is even or odd, like this:</p>
  
  <pre><code>$odd = array(a, c, e, g);
  
  $even = array(b, d, f);
  </code></pre>
  
  <p>Thanks in advance!</p>