I have an array which is like this:
array
0 => 'Name1'
1 => 'Name2'
2 => 'Name1'
3 => 'Name2'
4 => 'Name3'
5 => 'Name2'
6 => 'Name1'
7 => 'Name3'
After applying array_unique() for letting duplicated items go, my array goes like this:
0 => 'Name1'
1 => 'Name2'
4 => 'Name3'
As you see, the array index is 0, 1, 4! I need this to be reset and go like a fresh array while you make it, like:
0 => 'Name1'
1 => 'Name2'
2 => 'Name3'
How I could do that?