Answers for "remove an item from an array with index php"

PHP
16

php remove item array

$items = ['banana', 'apple'];

unset($items[0]);

var_dump($items); // ['apple']
Posted by: Guest on March-20-2020

Code answers related to "remove an item from an array with index php"

Browse Popular Code Answers by Language