How to reindex an array? June 25, 2022 by Tarik Use array_values: $reindexed_array = array_values($old_array);