title: array_unique and then renumbering keys
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/10524156/re-index-numeric-array-keys">Re-index numeric array keys</a>  </p>
  </blockquote>
  
  
  
  <p>I have an array as follows</p>
  
  <pre><code>Array
  (
      [0] =&gt; 15/11/2012 - 18/11/2012
      [1] =&gt; 15/11/2012 - 18/11/2012
      [2] =&gt; 15/11/2012 - 18/11/2012
      [3] =&gt; 15/11/2012 - 18/11/2012
      [4] =&gt; 19/12/2012 - 24/12/2012
      [5] =&gt; 24/12/2012 - 01/01/2013
      [6] =&gt; 24/12/2012 - 01/01/2013
      [7] =&gt; 16/01/2013 - 01/02/2013
  )
  </code></pre>
  
  <p>I am using array_unique to remove the duplicates which is giving me</p>
  
  <pre><code>    Array
  (
      [0] =&gt; 15/11/2012 - 18/11/2012
      [4] =&gt; 19/12/2012 - 24/12/2012
      [5] =&gt; 24/12/2012 - 01/01/2013
      [7] =&gt; 16/01/2013 - 01/02/2013
  )
  </code></pre>
  
  <p>How can I change the keys so that they are consecutive - as below</p>
  
  <pre><code>    Array
  (
      [0] =&gt; 15/11/2012 - 18/11/2012
      [1] =&gt; 19/12/2012 - 24/12/2012
      [2] =&gt; 24/12/2012 - 01/01/2013
      [3] =&gt; 16/01/2013 - 01/02/2013
  )
  </code></pre>
  
  <p>thanks in advance</p>