Unset an array key, and restore the sorting
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3003259/php-remove-the-first-index-of-an-array-and-re-index">PHP remove the first index of an array and re-index</a><br>
  <a href="http://stackoverflow.com/questions/5217721/how-to-remove-array-element-and-then-re-index-array">How to Remove Array Element and Then Re-Index Array?</a>  </p>
</blockquote>



<pre><code>$arr = array(1, 2, 3);

unset($arr[0]);

print_r($arr);

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

<p>What's the function called, so the output instead would be:</p>

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