How to interchange multi dimension array keys
<p>i have an array format like (mysql result array)</p>

<pre><code>$new_array=Array ( [0] =&gt; Array ( [quantity] =&gt; 5 ) [1] =&gt; Array ( [quantity] =&gt; 25 ) [2] =&gt; Array ( [quantity] =&gt; 20 ) )
</code></pre>

<p>I have to convert this array into the following format</p>

<pre><code>$new_array['quantity'][0]=5
$new_array['quantity'][1]=25
$new_array['quantity'][2]=20
</code></pre>

<p>How to convert this array format using any standard array method.</p>
