I feel stupid asking this - it must be so simple.
I've just stared using PHP and cannot find a way of dynamically using variables in a loop.
In JavaScript I would set a variable to increase with each loop and I want to use one of the 5 variables 'variable_name' + <loop number> each time the loop goes round.
in javascript it would be:
i=1;
while (i <= 5) {
this["variable_name"+i]
i++;
}
Thank you
Tom.