array_pop() PHP Array Function

How to use array_pop() function in an array in php language.I am explain array_pop() use for php function.

array_pop() :-

Definition & Usage :-

pops the element of the end of array.

or

The array_pop() function deletes the last element of an array.

example : –

<?php 
$a = array('red', 'black', 'blue'); 
array_pop($a); 
print_r($a);
?> 
output//
array( [0] => red [1] => black)