array_merge kullunabilirsin $diziler=array_merge($dizi1, $dizi2); sonra foreach kullanip sorunu cözebilirsin.