RE: [PHP] Variable Variables Help Please

From: Date: Thu, 31 Aug 2000 07:10:56 +0000
Subject: RE: [PHP] Variable Variables Help Please
Groups: php.general 
Request: Send a blank email to php-general+get-14529@lists.php.net to get a copy of this message
I once used something like this: $var0 ="whatever_$var1"; $myVar =${$var0} -----Original Message----- From: Jeff Lacy [mailto:jeffdl@mn.mediaone.net] Sent: Thursday, August 31, 2000 3:55 PM To: php-general@lists.php.net Subject: [PHP] Variable Variables Help Please Hello. I have three variables. The first one is $times. That is the number of times my for loop has executed. The second variable is $value_1. This is the value of a text box, let's say Alpha. My third variable is $value_2. This is the value of my second text box, let's say Beta. I would like to call something like $value_$times and have it go to be Alpha on the first time of the loop and Beta on the second time of the loop. $value_$times doesn't work. Does anyone know what would work? Thank you in advance for all of your help. P.S. I have tried $value_{$times} on the recommendation of a friend, but, unfortunately, that doesn't work. P.S.S. If I don't make any/much/enough sense, please reply to this or email me at jeffdl@mn.mediaone.net. Thank you! :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#14529) next »