If you want to re-index an array key to start from zero, simply do the following:
$new_array = array_values($old_array);
If you want to re-index an array key to start from zero, simply do the following:
$new_array = array_values($old_array);