php delete in array code example Example: php remove item array $items = ['banana', 'apple']; unset($items[0]); var_dump($items); // ['apple']