PHP arrays: delete duplicates and reorder keys

QuestionsPHP arrays: delete duplicates and reorder keys
Jehal Desai Staff asked 12 years ago

I have this array:

I want this array without duplicates so I do:

And now I have:

What do I have to do to get the array keys reordered like that:

Thanks!!


View on Stack Overflow