-0500
>Message-ID: <615315231286D21182E40008C7B1EED23C6E76@COMPAQ3000>
>Subject: [PHP-DB] Variables in a loop
>
> > I'm trying to write a loop to read variables I receive from a form:
> >
> >
> >
> >
> >
> >
> >
> >
> > I
7:03 PM
Subject: [PHP-DB] Variables in a loop
> I'm trying to write a loop to read variables I receive from a form:
>
>
>
>
>
>
>
>
> I'd like to get something like:
>
> for ($i=1; $i<=10; $i++) { $tab[$i]="a".$i ;}
>
>
> The e
From: LeTortorec, Jean-Louis <[EMAIL PROTECTED]>
Date: Mon, Oct 29, 2001 at 04:03:45PM -0500
Message-ID: <615315231286D21182E40008C7B1EED23C6E76@COMPAQ3000>
Subject: [PHP-DB] Variables in a loop
> I'm trying to write a loop to read variables I
Lookup "Variable Variables" in the PHP manual. You'll use something like:
${$i}
-Original Message-
From: LeTortorec, Jean-Louis [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 29, 2001 3:04 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-DB] Variables in a loop
I
http://www.php.net/manual/en/language.variables.variable.php
> -Original Message-
> From: LeTortorec, Jean-Louis [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 29, 2001 2:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP-DB] Variables in a loop
>
>
I'm trying to write a loop to read variables I receive from a form:
I'd like to get something like:
for ($i=1; $i<=10; $i++) { $tab[$i]="a".$i ;}
The expression "a".$i is actually a string, not a variable. Any idea how to
"read" the value of that string?
Thanks for your help.