I'm stuck, with a very simple question. but i must be using the wrong search terms or something because I'm not finding my answer.
I have a series of variables
$var1
$var2
$var3
$var4
...
$var22
how can I use these variables in a loop?
eg:
for($i=1;$i<22,$i++){
$var$i = {whatever}
}
I know there's a way to do this but I cant' seem to find it.
Thanks for pointing me in the right direction.
okay. found it. double dollar signs.
$desired='var'.$i;
$$desired= {what I want}