I'v an array like this:
Array([0] => 1,[1] => 2,[2] => 3,[3] => 3,[4] => 4,[5] => 5,[6] => 5,[7] => 6,[8] => 6,[9] => 6,[10] => 7,[11] => 8,[12] => 8,[13] => 8,[14] => 8,[15] => 9,[16] => 9,[17] => 9,[18] => 9,[19] => 9)
but the results I want like this:
Array([0] => 1,[1] => 2,[3] => 3,[4] => 4,[6] => 5,[9] => 6,[10] => 7,[14] => 8,[19] => 9)
This not only eliminates the value of the same array, but the same value that appears to be the value of the index / key of the last of the same value. anyone can help me?
array_unique($array)php.net/manual/en/function.array-unique.php