Demo For: Using PHP To Remove First Array Element / Item
Following are the original array contents:Array
(
[0] => apple
[1] => mango
[2] => grapes
[3] => pineapple
)
Use array_shift($my_fruits_array) to remove first element from array.Following are the array contents AFTER removing the first item from array:
Array
(
[0] => mango
[1] => grapes
[2] => pineapple
)