title: PHP: Turning multidimensional arrays to single dimension arrays
body: <p>Basically my app is interacting with a web service that sends back a weird multidimensional array such as:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [Price] =&gt; 1
          )
      [1] =&gt; Array
          (
              [Size] =&gt; 7
          )
      [2] =&gt; Array
          (
              [Type] =&gt; 2
          )
  )
  </code></pre>
  
  <p>That's not a problem, but the problem is that the service keeps changing the index of those items, so in the next array the Price could be at 1 instead of 0.</p>
  
  <p>How do I effeciently transform arrays like this into a single dimension array so I can access the variables through $var['Size'] instead of $var[1]['Size']?</p>
  
  <p>Appreciate your help</p>