$a1 = "blue"
$a2 = "red"
$a3 = "black
$-- = "--"
$a100 = "purple"
So i have 100 variables defined
If i want to display alll of the variables in a table, but each one on a separate row, how could i look it, i dont have to type in al 100 rows
for ($i = 1; $i < 100; $i++) {
$tempvar = "a".$i
}
echo "
$i | \n";
i cant figure out how to get the value of of the a's(a1,a2,a3, etc.) to incorporate themselves into the loop. Please help, ty
2006-11-16
00:19:16
·
3 answers
·
asked by
f1avor_f1av
3
in
Computers & Internet
➔ Programming & Design