// The array_push() function inserts one or more elements to the end of an array. $a=array("red","green"); array_push($a,"blue","yellow"); print_r($a);