- array_push: documentation ( source)
- print_r: documentation ( source)
- array_pop: documentation ( source)
<?php
$months = ['jan', 'feb', 'mar', 'april', 'may'];
array_push($months, 'jun');
$months[] = 'jul';
array_pop($months);
print_r($months);
?>