variable question...

From: Date: Tue, 16 Apr 2002 04:46:57 +0000
Subject: variable question...
Groups: php.general 
Request: Send a blank email to php-general+get-93123@lists.php.net to get a copy of this message
Let's say I a variable called $var1 and it's values is "one" ...I want to access them by doing something like this... $i = 1; if ("var".$i == "one") echo "Hello!"; ...I want the combination of "var" and $i to equal $var1 How do I do this?? The code I just wrote will not print out "Hello!" THANKS!!!!!!! Phil

« previous php.general (#93123) next »