I want to generate a selectbox using two arrays, one containing the country codes and another containing the country names.
selectbox
This is an example:
You should try this for the putting 2 array in singlr foreach loop Suppose i have 2 Array 1.$item_nm 2.$item_qty
` Sr.No item_nm item_qty @foreach (array_combine($item_nm, $item_qty) as $item_nm => $item_qty) $i++ $item_nm $item_qty @endforeach `