RE: [PHP] A variable with a variable

2002-01-11 Thread Ford, Mike [LSS]
> -Original Message- > From: Yoed [mailto:[EMAIL PROTECTED]] > Sent: 10 January 2002 23:01 > > I never really found the trick to this one yet, and wanted to > see what you > guys say is the best methods to call a variable that needs a variable. > > Say I have variables called $Var_1_Sta

RE: [PHP] A variable with a variable

2002-01-10 Thread Martin Towell
uot; ... :) -Original Message- From: Yoed [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 10:01 AM To: [EMAIL PROTECTED] Subject: [PHP] A variable with a variable I never really found the trick to this one yet, and wanted to see what you guys say is the best methods to call

Fwd: Re: [PHP] A variable with a variable

2002-01-10 Thread [EMAIL PROTECTED]
Use: $t = "Var_" . $Num_State; $Var_Call= $$t; or: $Var_Call= ${"Var_" . $Num_State}; bvr. On Thu, 10 Jan 2002 17:00:51 -0600, Yoed wrote: >I never really found the trick to this one yet, and wanted to see what you >guys say is the best methods to call a variable that needs a variable. > >

[PHP] A variable with a variable

2002-01-10 Thread Yoed
I never really found the trick to this one yet, and wanted to see what you guys say is the best methods to call a variable that needs a variable. Say I have variables called $Var_1_Stat, $Var_2_Stat, and $Var_3_Stat and I have a variable called $Nums thats value is either 1, 2, or 3. How then wou