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:
I solved a problem like yours by this way:
foreach(array_keys($idarr) as $i) { echo "Student ID: ".$idarr[$i].""; echo "Present: ".$presentarr[$i].""; echo "Reason: ".$reasonarr[$i].""; echo "Mark: ".$markarr[$i].""; }