rearranging array index code example Example: rearrange array index php $array = array_values($input);