php3 var question

From: Date: Thu, 15 Mar 2001 17:32:40 +0000
Subject: php3 var question
Groups: php.windows 
Request: Send a blank email to php-windows+get-6078@lists.php.net to get a copy of this message
If I have a set of variables named say: $var_1 $var_2 $var_3 and I want to use a for loop to do something with the variables like: for($i=1; $i<4; $i++){ echo $var_$i; } how do I do this so that $var_$i is interpreted as the variable ($var_1 ect)? Thanks, rob.

« previous php.windows (#6078) next »