- array_push: documentation ( source)
- print_r: documentation ( source)
<?php
// Everything you enter here will be executed by our servers. Try it!
$months = array('jan', 'feb', 'mar', 'april', 'may');
print_r($months);
array_push($months, 'june');
print_r($months);
$months [] = 'july';
print_r($months);
?>