Array pop() function is used to delete the last element in an array
Array push() function is used to insert the element in the array
$array is variable in which the values are stored
array_push($array ,value1 ,value2);
$array is variable in which the values are stored.
Value1 and value2 are the datas which needs to be inserted into the array contained in variable $array.