title: php array_unique not working as expected
body: <p>I am trying to learn how to use array_unique, so I made some sample code and I didn't get what I expected.</p>
  
  <pre><code>$array[0] = 1;
  $array[1] = 5;
  $array[2] = 2;
  $array[3] = 6;
  $array[4] = 3;
  $array[5] = 3;
  $array[6] = 7;
  $uniques = array_unique($array, SORT_REGULAR);
  for($i = 0; $i &lt; count($uniques); $i++)
      echo $uniques[$i];
  </code></pre>
  
  <p>For example this gives me the output of '15263' but not 7. After a few test I think that it stops looking after it finds the first duplicate. Is that what is supposed to happen?</p>