If you are going to re-index a numerical array, you should check out array_push and array_pop. using one of htoes stack functions will automagickally re-order your array. Not such a big deal when your array is only 3 elements big, but when its 500 elements big, you probably want the Zend Engine to handle the re-ordering, instead of looping through it yourself.
$fruit = array ("apples", "oranges", "bananas", "kiwis");
unset($fruit[0]); // I hate apples
/Push something onto the array temporarily to get the re-order madness to happen/
array_push($fruit, "foo");
array_pop($fruit); // pop off the foo element
There ya go.