Hi everyone I have a quick question regarding loops that I need help with...
I basically have a loop that runs 6 times for 6 GET vars, named v1 though v6. I want to run one loop that will print them back out and was wondering how to go about this.
The loop starts:
$i = 1;
while($i < 7){
$i = $i + 1;
}
I wanted to use the $i variable when I go though so I could quickly reprint the GET vars, something like:
$_GET[v . "$i"] or $_GET[v . echo($i);]
How can I do this???
I basically have a loop that runs 6 times for 6 GET vars, named v1 though v6. I want to run one loop that will print them back out and was wondering how to go about this.
The loop starts:
$i = 1;
while($i < 7){
$i = $i + 1;
}
I wanted to use the $i variable when I go though so I could quickly reprint the GET vars, something like:
$_GET[v . "$i"] or $_GET[v . echo($i);]
How can I do this???