use array_push(); my working example is below <?php $array = array("1", "2"); array_push($array, "3", "4"); print_r($array); ?> // output will be Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 )