Creating a variable with a variable
Posted: Sun Jan 30, 2005 3:36 pm
I am trying to make a variable inside a loop from another variable. For example:
inside the loop I have variable $currentrow that tells me which row the loop is on
I want to make a variable named $news_[value of current row]
so when $currentrow is 5, it makes a variable $news_5.
How do I go about doing this?
Thanks,
Jon
inside the loop I have variable $currentrow that tells me which row the loop is on
I want to make a variable named $news_[value of current row]
so when $currentrow is 5, it makes a variable $news_5.
How do I go about doing this?
Thanks,
Jon