array_shift in PHP

Syntax of array_shift mixed array_shift(array stack) Similar to array_pop(), but instead of removing and returning the last element in the array, it removes and returns the first element in the array. If the array is empty, or if the argument is not an array, returns NULL Example of array_shift in PHP Array ( [0] => … Read more