title: How to re-key array with non-sequential numeric keys
body: <p>I have an array:</p>
  
  <pre><code>Array
  (
   [0] =&gt; ololo
   [2] =&gt; test
   [3] =&gt; haha
   [7] =&gt; nice
  )
  </code></pre>
  
  <p>How can I change the indexes of the array to this:</p>
  
  <pre><code>Array
  (
   [0] =&gt; ololo
   [1] =&gt; test
   [2] =&gt; haha
   [3] =&gt; nice
  )
  </code></pre>