Re: [PHP] Incrementing a String Name

2001-04-23 Thread Patrick Dunford
On 22 Apr 2001 17:56:23 -0700 AD in php.general, Chris Aitken said: >Hi > >Just a quick puzzle I cant seem to get around at the moment... Why don't you put it in your own thread -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: [PHP] Incrementing a String Name

2001-04-22 Thread Meir kriheli
On Monday 23 April 2001 03:58, Chris Aitken wrote: > Hi > > Just a quick puzzle I cant seem to get around at the moment... > > Im trying to create a loop that increments the string name by a digit. For > example, if I had the following 4 strings submitted to a script. > > $name1 > $name2 > $na

Re: [PHP] Incrementing a String Name

2001-04-22 Thread Tom Rogers
Hi Here is another way $x = 1; while($x < 5): $index = "name".$x; $name = $$index; echo $name.""; endwhile; had troubles with echo and $$variable, thats why the extra stephabit Tom At 10:58 AM 23/04/01 +1000, Chris Aitken wrote: >Hi > >Just a quick puzzle I cant s

Re: [PHP] Incrementing a String Name

2001-04-22 Thread Andreas Landmark
On Mon, Apr 23, 2001 at 10:58:20AM +1000, Chris Aitken produced this golden nugget: > Hi > > Just a quick puzzle I cant seem to get around at the moment... > > Im trying to create a loop that increments the string name by a digit. For > example, if I had the following 4 strings submitted to a s

[PHP] Incrementing a String Name

2001-04-22 Thread Chris Aitken
Hi Just a quick puzzle I cant seem to get around at the moment... Im trying to create a loop that increments the string name by a digit. For example, if I had the following 4 strings submitted to a script. $name1 $name2 $name3 $name4 What I want to do is create a while loop that will prin