title: PHP arrays: delete duplicates and reorder keys
body: <p>I have this array: </p>
  
  <pre><code>$gspa['aryNumEmp']
  : array = 
    0: string = 41
    1: string = 41
    2: string = 41
    3: string = 41
    4: string = 41
    5: string = 41
    6: string = 41
    7: string = 41
    8: string = 41
    9: string = 2355
    10: string = 2355
    11: string = 2355
    12: string = 2355
    13: string = 2355
    14: string = 2355
  </code></pre>
  
  <p>I want this array without duplicates so I do: </p>
  
  <pre><code>array_unique($gspa['aryNumEmp'])
  </code></pre>
  
  <p>And now I have: </p>
  
  <pre><code>: array = 
    0: string = 41
    9: string = 2355
  </code></pre>
  
  <p>What do I have to do to get the array keys reordered like that: </p>
  
  <pre><code>: array = 
    0: string = 41
    1: string = 2355
  </code></pre>
  
  <p>Thanks!! </p>