PHP array_pop() Function is used to remove the last element of an array.The array_pop() is a built-in function of PHP.
Syntax :
array_pop(array)
Parameter,
$array : Required It is type of array parameter.
Return : It returns array with removed last element. If array is empty, or is not an array, NULL will be returned.
Let's see below example to understand php array_pop() Function in details.
Comments