Is there a way to concatenate to make a variable? For example, I have a loop that looks like so:
$j=1;
while($j <10 ){
$VarNum="This is the value of variable number ".$j."<br>";
$j++;
}
and I want the variable to increase in number so that I would have $VarNum1, $VarNum2, $VarNum3, etc.... I was thinking I would do something like this
$VarNum.$j="This is the value of variable number ".$j."<br>";
but that doesn't seem to work. Any suggestions?