- array_push: documentation ( source)
- print_r: documentation ( source)
- array_pop: documentation ( source)
<?php
$months = array('jan', 'feb', 'mar', 'apr', 'may');
array_push ($months, 'june');
$months[] = 'july';
$month = array_pop($months);
print_r($months);
echo $month;