PHP array rename keys
<p>I have an array like this, the keys are epoch timestamps they were used to order the files by date i now want to rename the keys to 0, 1, 2, 3, etc</p>

<pre><code>Array($files)
(
    [1365168386] =&gt; _MG_5704.jpg
    [1368201277] =&gt; _MG_5702.jpg
    [1368201719] =&gt; jetty.jpg
    [1368202375] =&gt; _MG_6100.jpg
    [1368202758] =&gt; _MG_5823.jpg
    [1368203032] =&gt; _MG_5999.jpg
    [1368203244] =&gt; _MG_5794.jpg
    [1368203477] =&gt; _MG_5862.jpg
    [1368203727] =&gt; _MG_6028.jpg
)
</code></pre>

<p>so it becomes</p>

<pre><code>Array($files)
(
    [0] =&gt; _MG_5704.jpg
    [1] =&gt; _MG_5702.jpg
    [2] =&gt; jetty.jpg
    [3] =&gt; _MG_6100.jpg
    [4] =&gt; _MG_5823.jpg
    [5] =&gt; _MG_5999.jpg
    [6] =&gt; _MG_5794.jpg
    [7] =&gt; _MG_5862.jpg
    [8] =&gt; _MG_6028.jpg
)
</code></pre>
