Key keeps the old name after renaming it
<p>This is my code:</p>

<pre><code>foreach ($all_orders as $order){//the $all_orders array contains a number of arrays, so it's a multidimensional array

$order["Order Rank"]=$order[0];
unset($order[0]);
}
</code></pre>

<p>after renaming the key with the new key and when i print the array:</p>

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

<p>i got the old key name (which is 0):</p>

<pre><code>Array
(
    [0] =&gt; Array
        (
            [0] =&gt; 1
            )
</code></pre>

<p>why it's not :</p>

<pre><code>Array
    (
        [0] =&gt; Array
            (
                ["Order Rank"] =&gt; 1
                )
</code></pre>

<p>am i missing something? thanx in advance.</p>
