The pop() function of array object removes the last element of the array and return removed element. Use it for example to remove last element from an array.
Syntax
This will produce following result