Ok, this is what I came up with. Is this the way you would do it?
$var1=array("a","b");
$var2=array("c","d","e");
$var3=array("f","g");
$var4=array("h","i","j","k");
$a=1;
for($w=0; $w<2; $w++){
for($x=0; $x<3; $x++){
for($y=0; $y<2; $y++){
for($z=0; $z<4; $z++){
echo"$a) $var1[$w]$var2[$x]$var3[$y]$var4[$z]<br>";
$a++;
}
}
}
}