Re: variable question
| From: | water_foul | Date: | Sat, 19 Jun 2004 20:41:38 +0000 |
| Subject: | Re: variable question | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-188647@lists.php.net to get a copy of this message | ||
Thanks oh so much
"Robin Vickery" <robinv@gmail.com> wrote in message
news:5cb2dafd0406191341434c28dd@mail.gmail.com...
> On Sat, 19 Jun 2004 14:25:27 -0600, water_foul
> <phpdbnews@aaron.aichlmayr.net> wrote:
> >
> > is there a way to use one variable to create another?
> > Example
> > $poo=1
> > and i want
> > $lie1
> > OR
> > $poo=2
> > and i want
> > $lie2
>
> If I understand you right, you want:
>
> ${'lie' . $poo}
>
> when $poo is 1, that will give you $lie1, and when $poo is 2, it'll
> give you $lie2.
>
> You're almost certain to be better off using arrays though,,,
>
> -robin