I'm trying to make a variable variable if that makes sense? eg. I have a loop that will add a number to a variable that will be used in an IF statement:
while(c<=3) {
c++;
$varname = "thevar".$c;
if($varname==1) {
... blah blah blah ...
}
}
I want the IF statement to grab the actual value of the variables that were named (eg. $thevar1, $thevar2, $thevar3).
I'm assuming I use some kind of Evaluate function?