Re: for loops
| From: | Steve Buehler | Date: | Thu, 30 May 2002 12:57:41 +0000 |
| Subject: | Re: for loops | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99898@lists.php.net to get a copy of this message | ||
it works for me just the way you have it....except of course that you are telling it to only print to "y" because you are saying <z
Steve
At 12:50 PM 5/30/2002 +0800, Jason Wong wrote:
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. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ow3