[PHP] Variables in variable names

2001-05-09 Thread seriousj
Hello, I need some help (newbie). I have some variable names with the form: $name_1 $name_2 $name_3 $name_4... I want to access them by doing something like this: $i=0 $name_$i This doesn't work, how do I include another variable in the name of a variable?. Cheers John -- PHP General

Re: [PHP] Variables in variable names

2001-05-09 Thread seriousj
. Maybe an array would be more appropriate. e.g. $name[$i] = . . -Stewart -Original Message- From: seriousj [mailto:[EMAIL PROTECTED]] Sent: 09 May 2001 12:09 To: [EMAIL PROTECTED] Subject: [PHP] Variables in variable names Hello, I need some help (newbie). I have some

Re: [PHP] Variables in variable names

2001-05-09 Thread seriousj
Thanks, that worked great! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]