<?php$old_arr[1] = "jhjk";$old_arr[5] = "khjkl";print_r($old_arr); $new_arr = array_values($old_arr);print_r($new_arr);
Standard input is empty
Array ( [1] => jhjk [5] => khjkl ) Array ( [0] => jhjk [1] => khjkl )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!