Possible Duplicate:
How do you reindex an array in PHP?
I have an array:
$input =array{0 => 'a', 1 => 'b',2 => 'c'}
Then, If I destroyed a variable in the array. Like this:
unset($input[1]);
The array will be like this:
$input =array{
0 => 'a',
2 => 'c'
}
I want to rearrange it to become like this:
$input =array{
0 => 'a',
1 => 'c'
}
How can I do it?
Thanks