Hi I have an array, I need to change the keys, in an orderly manner but don\'t change the order the values are. e.g.
$a = array ( 0=>\'h\', 1=>\'blab
You need to apply array_values on your array to re-index.
$a = array_values($a);
Bonus: If you also need to order your values you can use sort and it too will re-index your array.
Note: By using any of array_values or sort you will loose any string keys you may have.