array_pop Pop the element off the end of array Description mixedarray_pop arrayarray array_pop pops and returns the last value of the array, shortening the array by one element. If array is empty (or is not an array), &null; will be returned. <function>array_pop</function> example After this, $stack will have only 3 elements: orange [1] => banana [2] => apple ) ]]> and rasberry will be assigned to $fruit. &return.falseproblem; See also array_push, array_shift, and array_unshift.