3
Example, I have:
$matriz = array("Tomate", "Morango", "Melancia");
I would have:
(
[0] => Tomate
[1] => Morango
[2] => Melancia
)
But if I do:
unset($matriz[0]);
I will have:
(
[1] => Morango
[2] => Melancia
)
How to order automatically to return from 0
(
[0] => Morango
[1] => Melancia
)
Cool, never used the
array_shift
, about creating a new, exact, it doesn’t really need to, so I just said create the array again, may be of the same name or not.– Evert