Is There a way to use a variable in the name of another variable? I need to do something like this.
for ($i = 1; $i <= 10; $i++) { if ($i == $variable_i'snumberhere){ echo "TEST"; } }
Putting the variable $i where it says "i'snumberhere"
why not use arrays?
$variable[$i]
these are called variable variables, take a look at the manual