I have a PHP for loop:
for ($counter=0,$counter<=67,$counter++){
echo $counter;
$check="some value";
}
What I am trying to achieve is use the for loop variable and append it to the name of another variable.
Bascially, I want the PHP output to be as follows for each row
1
$check1="some value"
2
$check2="some value"
3
$check3="some value"
4
$check4="some value"
etc etc
I have tried $check.$counter="some value"
but this fails.
How can I achieve this? Am I missing something obvious?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…