Is there a way to re-index an array? I'm trying to delete a part of an array, however I want the same index order, but I want to get rid of blank indexes .... example.
$test = array("1","2","3","4","5");
unset($test[2]);
//$test is now ..
$test[0] // = 1
$test[1] // = 2
$test[3] // = 4
$test[4] // = 5
... I want ...
$test = array("1","2","3","4","5");
unset($test[2]);
//$test is now ..
$test[0] // = 1
$test[1] // = 2
$test[2] // = 4
$test[3] // = 5