I have an array
$cars = array("Volvo", "BMW", "Toyota", "Mercedes");
I wanted to remove first element "Volvo" and i use this
unset($cars[0]);
Now i have an array like this:
Array
(
[1] Bmw
[2] Toyota
[3] Mercedes
)
But i want to my array begins again with zero, to be like this:
Array
(
[0] Bmw
[1] Toyota
[2] Mercedes
)
How to do it?