endy
-
Posts
2 -
Joined
-
Last visited
Never
Posts posted by endy
-
-
Hello,
I am trying to use a "while" loop to create a bunch of variables, however it doesnt seem to be working. Is there a way to concatenate a variable name with another variable? Here is what I am trying to do:
[code]$i=0
while($i<5) {
$my_var.$i="something";
$i++;
}[/code]
So I just want to get a series of variables ($my_var1, $my_var2, $my_var3,...) that are all equal to "something";
Is it possable?
THanks!
How to increment a variable?
in PHP Coding Help
Posted