This starts to look like array_values(), except that you can reindex the arrays using the third parameter.