Remember, array_values() will ignore your beautiful numeric indexes, it will renumber them according tho the 'foreach' ordering:
<?php
$a = array(
3 => 11,
1 => 22,
2 => 33,
);
$a[0] = 44;
print_r( array_values( $a ));
==>
Array(
[0] => 11
[1] => 22
[2] => 33
[3] => 44
)
?>