array_push

Syntax:int array_push ( array &$array , mixed $var [, mixed $… ] )
Description: Push one or more elements onto the end of array

<?php
$stack = array("orange", "banana");
array_push($stack, "apple", "raspberry");
print_r($stack);
?>
    

OUTPUT

Array ( 
[0] => orange 
[1] => banana 
[2] => apple 
[3] => raspberry 
)