how to get var value

From: Date: Thu, 26 Apr 2001 10:53:22 +0000
Subject: how to get var value
Groups: php.general 
Request: Send a blank email to php-general+get-50443@lists.php.net to get a copy of this message
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 $test (1 in this case). There has to be way aroud this but I am just cannot find it :(. Regards Ajdin

« previous php.general (#50443) next »