title: array_shift() after an arsort() messing up keys/indices
body: <p>I am running into an ordering issue after an arsort() -</p>
  
  <pre><code>Array
  (
    [22] =&gt; 20
    [11] =&gt; 20
    [17] =&gt; 18
    [5] =&gt; 18
    [35] =&gt; 17
    [34] =&gt; 17
    ...
  )
  </code></pre>
  
  <p>After I am done working with the first set of data, I need to use an array_shift(as far as I know, its the only way to delete/pop the top element). However this causes the indices to seemingly reset to their original order.</p>
  
  <pre><code>Array
  (
     [0] =&gt; 20
     [1] =&gt; 18
     [2] =&gt; 18
     [3] =&gt; 17
     [4] =&gt; 17
    ...
  )
  </code></pre>
  
  <p>As you can see, the order of the values is retained, however the indices are reset. Is there any way to retain the original order of indices and values after performing a removal operation of the first element of the array? I am still a bit new to PHP so sorry if its an obvious solution.</p>