remove index name from php from array and replace it with number code example
Example: php remove item array
$items = ['banana', 'apple'];
unset($items[0]);
var_dump($items); // ['apple']
$items = ['banana', 'apple'];
unset($items[0]);
var_dump($items); // ['apple']