variable name [SOLVED]
Posted: Sat Sep 15, 2007 2:10 am
Hi,
I am having a problem which someone in this forum might be able to help me with.
I want to have a variable with a variable in its name
For e.g my if I have a loop
I want to have a variable name like
inputdata$num which means 10 variables should be formed after the loop terminates
inputdata1, inputdata2......inputdata10.
I am unable to do this.
Can someone help please?
Thanks
I am having a problem which someone in this forum might be able to help me with.
I want to have a variable with a variable in its name
For e.g my if I have a loop
Code: Select all
for($num=0;$num<10;$num++)inputdata$num which means 10 variables should be formed after the loop terminates
inputdata1, inputdata2......inputdata10.
I am unable to do this.
Can someone help please?
Thanks