I have the following question, for example
<?php
$cesta = array("laranja", "banana", "melancia", "morango");
$fruta = array_pop($cesta);
print_r($cesta);
?>
the initial array goes from 0 to 3, when I do array_pop
it stays from 0 to 2, but if I add a new element the positions of the array will be, (0,1,2,4). Is there a way to put the positions as (0,1,2,3) excluding one element and adding another then?