Search found 3 matches

by juan
Sun Jan 30, 2005 4:12 pm
Forum: PHP - Code
Topic: Creating a variable with a variable
Replies: 4
Views: 625

Nevermind,

I just realized it would probably be easier to do an array inside an array.

Thanks for help though.
by juan
Sun Jan 30, 2005 4:11 pm
Forum: PHP - Code
Topic: Creating a variable with a variable
Replies: 4
Views: 625

Well actually I do plan on using an array, but I want

array_1
array_2
array_3

with the # according to the value of $currentrow
by juan
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...