Re: for loops

From: Date: Thu, 30 May 2002 04:50:44 +0000
Subject: Re: for loops
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-99853@lists.php.net to get a copy of this message
On Thursday 30 May 2002 11:46, Peter wrote: > Just a query ... has any one else noticed this > > for($i = a; $i < z; $i++) > { > print $i; > echo "<BR>";} > > will print out a right down to yz It should only print to 'y' ... > but replace the letters with numbers eg > > for($i = 1; $i < 10; $i++) > { > print $i; > echo "<BR>";} > > and it prints 1 thru to 10 ... and should only print to '9' ... > and any one know a reason for this? ... so if it does otherwise for you then you've got a bug in your version of php! -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Many people are desperately looking for some wise advice which will recommend that they do what they want to do. */

« previous php.general (#99853) next »