How do you reset the index of an array after blowing out one of the elements?
For example:
$array[0] = "blank1";
$array[1] = "blank2";
$array[2] = "blank3";
$array[3] = "blank4";
$array[4] = "blank5";
unset($array[3]);
This will of course destroy blank4.
But now I'm left with a gap in the index like so:
$array[0]
$array[1]
$array[2]
$array[4]
Is there a way to reset the index so everything will be like this?:
$array[0]
$array[1]
$array[2]
$array[3]