RE: [PHP] Extracting Variables

From: Date: Thu, 13 Jun 2002 22:36:43 +0000
Subject: RE: [PHP] Extracting Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-102097@lists.php.net to get a copy of this message
> echo "i = $i<br>"; > for($c=1;$c<=$i;$c++){ > echo "team_number $team_number_$c<br>"; > echo "sub1_$c = $sub1_$c<br>"; > echo "sub2_$c = $sub2_$c<br>"; > echo "sub3_$c = $sub3_$c<br>"; > echo "sub4_$c = $sub4_$c<br>"; > echo "sub5_$c = $sub5_$c<br>"; > } > } Perhaps this: Echo "sub1_$c = $sub1_$c[$c]";

« previous php.general (#102097) next »