I\'ve Googled it for two days, and tried looking at the PHP manual, and I still can\'t remember that function that aligns the key values for PHP arrays.
All I\'m loo
function array_reset_index_keys($array)
{
$return = array();foreach($array as $k => $v){$return[] = $v;}return $return;
}
And then use like a regular function, should re index the array
you can also use native functions such as array_values
which returns the values of an array into a single dimension array, causing it to be re indexed .