Jump to content

Help with a variable question


Emperio

Recommended Posts

Hi i got a question about a variable

I try to do this

    while($i<=$userstats3[lineupgrade])

    {

      $line$i='test';

      print "'$line$i'";

      $i++;

    }

 

But its not working

I want to give the variable of 'test' a name+$i so when i = 2 it must be the line2..

But this shows error can someone tell me how to do it right?

Link to comment
https://forums.phpfreaks.com/topic/196733-help-with-a-variable-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.