Bring multi-dimensional array down (unnest) one level
<p>Althoug this works well enough, I am curious if anyone knows of a prettier way of doing this as this situation seems to come up quite often. </p>

<pre><code>&lt;?php
//Initialy,  data is nested up in $some_array[0] ...
$some_array = array(array('somevar' =&gt; "someValue", "someOtherVar" =&gt; "someOtherValue"));

print_r($some_array);   
</code></pre>

<p>Array ( [0] => Array ( [somevar] => someValue [someOtherVar] => someOtherValue ) )</p>

<pre><code>// Could the following line be achieved a more elegant fashion?
$some_array = $some_array[0];

print_r($some_array);

// Prints the intended result:  
</code></pre>

<p>Array ( [somevar] => someValue [someOtherVar] => someOtherValue )</p>

<p>Does anyone know of a way to achieve this with a native function or in a more elegant fashion?</p>

<p>Thanks!</p>
