Re: For loop

From: Date: Fri, 05 Jan 2001 16:26:41 +0000
Subject: Re: For loop
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-32892@lists.php.net to get a copy of this message
Some like that: we call "concatenation" of variables. for ($i=1; $i<=$total; $i++) { $tmp="result".$i; $lista[$i]=${$tmp}; } On Fri, 5 Jan 2001, Wee Chua wrote: > Hi all, > Could anyone show how to create sequece variable automatically by using for > loop? Thanks a lot. > Example, > result1 > result2 > result3 > result4 > result5 > result6 > > Calvin Chua > > > -- > 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 (#32892) next »