Re: [PHP] how to get var value

2001-04-26 Thread [EMAIL PROTECTED]
day, April 26, 2001 5:53 AM Subject: [PHP] how to get var value > Hi, > > (this is just an example) > I have on one page > > $test=1; > $var1='test'; > > on another page I want to be able to construct variable from the value in > $var1 (test in this cas

RE: [PHP] how to get var value

2001-04-26 Thread AJDIN BRANDIC
> > > > -Original Message- > From: AJDIN BRANDIC [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 26, 2001 7:53 PM > To: [EMAIL PROTECTED] > Subject: [PHP] how to get var value > > > Hi, > > (this is just an example) > I have on one page >

RE: [PHP] how to get var value

2001-04-26 Thread PHPBeginner.com
] Subject: [PHP] how to get var value Hi, (this is just an example) I have on one page $test=1; $var1='test'; on another page I want to be able to construct variable from the value in $var1 (test in this case) and print its value. So, $newvar=$; $newvar.=echo"$var1";

Re: [PHP] how to get var value

2001-04-26 Thread Johannes Janson
hi, by .= you assign the value to a var in this case a string. $test = 1; $var = "test"; $newvar = $$var; echo $newvar; // outputs "1" Johannes "AJDIN BRANDIC" <[EMAIL PROTECTED]> schrieb im Newsbeitrag Pine.OSF.3.91.1010426114338.17213A-10@leofric">news:Pine.OSF.3.91.1010426114338.1721

[PHP] how to get var value

2001-04-26 Thread AJDIN BRANDIC
Hi, (this is just an example) I have on one page $test=1; $var1='test'; on another page I want to be able to construct variable from the value in $var1 (test in this case) and print its value. So, $newvar=$; $newvar.=echo"$var1"; now $newvar contains string '$test' but not the value of $t