Re: convert text to variable

From: Date: Thu, 09 Nov 2000 15:07:36 +0000
Subject: Re: convert text to variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-24501@lists.php.net to get a copy of this message
Just use: print $size1."<BR>".$size2."<BR>".$size3."<BR>"; Martin Alaiddin Tayeh wrote: > I have this code > $size1=10; > $size2=20; > $size3=30; > for($i=1;$i<4; $i++){ > //I need the line of code that concatenates the "$size" and the $i > value to make a new variable its value as above > echo"br" > } > //--------- > I want the output to be like this > 10 > 20 > 30 > > thanks > -- > Best Regards > Alaiddin Tayeh; > Webmaster > Palestinian Internet Services > WWW.P-I-S.COM > Tel: +97272843197 > Fax: +97272843377 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#24501) next »