I have two different array for foreach loop so i decide to combine them and run in to foreach loop together but it\'s returning only last
array
foreach loop
That's not how array_combine works.
You can simply do
foreach($FileName as $id=>$Name) { echo $FileType[$id] .":". $Name; }
Assuming both arrays are of same size and same keys