Possible Duplicate:
How do you reindex an array in PHP?
PHP reindex array?
I have an array where I delete an element:
unset($array[2]);
After that, the element is gone, but the indices are messed up. I want to indices to be reordered as well. Right now, it has 0,1,3,4,5,....the 2 is missing now. I also used var_dump($array), made no change.
Ideas?