array_push: Push one or more elements onto the end of array
<?php
$states = array("Ohio","New York");
array_push($states,"California","Texas");
// $states = array("Ohio","New York","California","Texas");
print_r($states);
?>
Related examples in the same category