changing keys of a multidimensional array
<p>I have a multidimensional array as shown below. How do I change the keys that start with "id of"?</p>

<pre><code>Array
(
[0] =&gt; Array
    (
        [id of ten] =&gt; 1871
        [name] =&gt; bob
    )

[1] =&gt; Array
    (
        [id of nine hundred thousand] =&gt; 12581
        [name] =&gt; barney        
    )

)
</code></pre>

<p>Normally, you'd do something like:</p>

<pre><code>foreach ( $array as $k=&gt;$v )
{
  $array[$k] ['id'] = $array[$k] ['old'];
  unset($array[$k]['old']);
}
</code></pre>

<p>In my case, the key changes dynamically (there are thousands of keys in my multidimensional array and they are random but they will always start w/ "id of...")</p>

<p>thx!</p>
