Re: Re: Changing variable names in a while loop
| From: | Torsten Roehr | Date: | Fri, 28 May 2004 11:40:27 +0000 |
| Subject: | Re: Re: Changing variable names in a while loop | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187111@lists.php.net to get a copy of this message | ||
"I.A. Gray" <tech@selectperformers.com> wrote in message
news:GKENIOKKDEHBGNGOCJHNAEGECGAA.tech@selectperformers.com...
> Thanks, Torsten. That clears things up quite a bit. I do find the PHP
> manual a little heavy going sometimes. Does this mean then that I have to
> do this:
> $tempcomposer = 'composer' . $countything;
> $tempsubheading = 'subheading' . $countything;
> $tempmovementno = 'movementno' . $countything;
>
> etc...
>
> as I have about 8 variables to change?
I think so, yes. Just put them into your loop and then use ${$tempcomposer}
and so on to put the value into your input value attribute.
Regards, Torsten