Nevermind,
I just realized it would probably be easier to do an array inside an array.
Thanks for help though.
Search found 3 matches
- Sun Jan 30, 2005 4:12 pm
- Forum: PHP - Code
- Topic: Creating a variable with a variable
- Replies: 4
- Views: 625
- Sun Jan 30, 2005 4:11 pm
- Forum: PHP - Code
- Topic: Creating a variable with a variable
- Replies: 4
- Views: 625
- Sun Jan 30, 2005 3:36 pm
- Forum: PHP - Code
- Topic: Creating a variable with a variable
- Replies: 4
- Views: 625
Creating a variable with a variable
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 do...