Split array into key => array()
<p>Consider the following array:</p>

<pre><code>$array[23] = array(
  [0] =&gt; 'FOO'
  [1] =&gt; 'BAR'
  [2] =&gt; 'BAZ'
);
</code></pre>

<p>Whenever I want to work with the inner array, I do something like this:</p>

<pre><code>foreach ($array as $key =&gt; $values) {
  foreach ($values as $value) {
    echo $value;
  }
}
</code></pre>

<p>The outer foreach-loop is there to split the $key and $value-pairs of $array. This works fine for arrays with many keys ([23], [24], ...)but seems redundant <strong>if you know beforehand that $array only has one key</strong> (23 in this case). In a case as such, isn't there a better way to split the key from the values? Something like</p>

<pre><code>split($array into $key =&gt; $values)
foreach ($values as $value) {
  echo $value;
}
</code></pre>

<p>I hope I made myself clear.</p>
