READ THE MANUAL.
variable variables
$i=1;
$sName = "seat$i";
$value = $$sName;
At 04:40 PM 10/31/2001 +1100, sc wrote:
>Hey all;
>
>If i have a variable say, $seat and i want to go through variables with a
>number, ie. $seat1 , $seat2 etc. how would i go about it? i have one setup
>where $p in
<[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, October 30, 2001 9:40 PM
> Subject: [PHP] question about variables...
>
>
> > Hey all;
> >
> > If i have a variable say, $seat and i want to go through variables with
a
> > number, ie.
-
From: sc <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 30, 2001 9:40 PM
Subject: [PHP] question about variables...
> Hey all;
>
> If i have a variable say, $seat and i want to go through variables with a
> number, ie. $seat1 , $seat2 etc. how wou
Hey all;
If i have a variable say, $seat and i want to go through variables with a
number, ie. $seat1 , $seat2 etc. how would i go about it? i have one setup
where $p increments (so then you have $seat$p) but i cant get it to work
properly (tried all sorts of combinations with ' and " and . etc.)
4 matches
Mail list logo