title: PHP how to flatten out this indexed array?
body: <p>I have the following array:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [ContractorName] =&gt; Joe Soap
              [BonusAmount] =&gt; 73.92
          )
  
      [1] =&gt; Array
          (
              [ContractorName] =&gt; Mike Michaels
              [BonusAmount] =&gt; 68.55
          )
  
      [2] =&gt; Array
          (
              [ContractorName] =&gt; John Smith
              [BonusAmount] =&gt; 34.35
          )
  
      [3] =&gt; Array
          (
              [ContractorName] =&gt; Pete Peterson
              [BonusAmount] =&gt; 24.61
          )
  
      [4] =&gt; Array
          (
              [ContractorName] =&gt; Pete Smith
              [BonusAmount] =&gt; 22.76
          )
  
  )
  </code></pre>
  
  <p>How do I go about ending up with an array that looks like this:</p>
  
  <pre><code>Array
  (
      [Joe Soap] =&gt; 73.92
      [Mike Michaels] =&gt; 68.55
      [John Smith] =&gt; 34.35
      [Pete Peterson] =&gt; 24.61
      [Pete Smith] =&gt; 22.76
  )
  </code></pre>
  
  <p>I'm a bit lost at the moment.  I have tried creating a new array by looping over the first array, but I'm getting unwanted results.  Any help greatly appreciated.</p>