title: Convert array of key-value pairs into associative array
body: <p>I currently have an Array:</p>
  
  <pre><code>[1] =&gt; Array
      (
          [0] =&gt; 100011
          [1] =&gt; 1
      )
  
  [2] =&gt; Array
      (
          [0] =&gt; 100013
          [1] =&gt; 1
      )
  
  [3] =&gt; Array
      (
          [0] =&gt; 100022
          [1] =&gt; 1
      )
  
  [4] =&gt; Array
      (
          [0] =&gt; 100025
          [1] =&gt; 1
  </code></pre>
  
  <p>I want to take the first child item (meaning [0]) of each array (1,2,3,4,etc) and put it into a new array. I know I need to loop through and assign the value to new array. Just not sure how to do it.</p>
  
  <p><strong>End result would be:</strong></p>
  
  <p>$final (name of new array) has values 100013,100022,100025,etc.</p>
  
  <p><strong>My real end result:</strong></p>
  
  <p>I need it kept in the same order, because I am then going to use <code>array array_combine ( array $keys , array $values )</code> to create 100013 as the key and 1 as the value, 100022 as the key, 1 as the value, 100025 as the key, 1 as the value. </p>
  
  <p>If you know a quicker way to accomplish, it is appreciated.</p>
  
  <p>Thanks.</p>