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
You cannot have the same key multiple times in an array.
Do this instead:
foreach (array_combine($FileName, $FileType) as $Name => $Type) { echo $Type .":". $Name; }