title: PHP remove Item in array and reset key
body: <p>I have a big array (multidimensional) and I need to remove items in it and reset the index for it. I have no idea how to do it.</p>
  
  <p>Example:</p>
  
  <pre><code>$array = array(
   0 =&gt; 'Name G',
   1 =&gt; 'Name Z',
   2 =&gt; 'Name A',
   3 =&gt; 'Name H',
   4 =&gt; 'Name U',
  )
  </code></pre>
  
  <p>I need this:</p>
  
  <pre><code>$array = array(
   0 =&gt; 'Name G',
   1 =&gt; 'Name A',
   2 =&gt; 'Name U',
  )
  </code></pre>
  
  <p>I can do the unset() fine .. but I have this:</p>
  
  <pre><code>$array = array(
   0 =&gt; 'Name G',
   2 =&gt; 'Name A',
   4 =&gt; 'Name U',
  )
  </code></pre>
  
  <p><strong>I Can't SORT it</strong></p>
  
  <p>Is there a php function that will do this? else How can I do it?</p>