php delete portion of an array 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']