Jump to content

endy

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

endy's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. 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!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.