Re: variable question

From: Date: Sat, 19 Jun 2004 20:41:13 +0000
Subject: Re: variable question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-188645@lists.php.net to get a copy of this message
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

« previous php.general (#188645) next »