PHP - add item to beginning of associative array
<p>How can I add an item to the beginning of an associative array?  For example, say I have an array like this:</p>

<pre><code>$arr = array('key1' =&gt; 'value1', 'key2' =&gt; 'value2');
</code></pre>

<p>When I add something to it as in <code>$arr['key0'] = 'value0';</code>, I get:</p>

<blockquote><pre>Array
(
    [key1] => value1
    [key2] => value2
    [key0] => value0
)</pre></blockquote>

<p>How do I make that to be</p>

<blockquote><pre>Array
(
    [key0] => value0
    [key1] => value1
    [key2] => value2
)</pre></blockquote>

<p>Thanks,<br>
Tee</p>
