PHP array_pop() Function

The array_pop() function is used to remove the last element of an array. For an empty array, the function returns NULL

Example -

Example -