I seriously doubt your code works -- have you tested it? I think the code
you submitted will most probably output "1 2 3 4...24 25 26" (spaces are
actually \n's). I never tested it though, so I may be mistaken.

However, with just a few changes we get
$letter='a';
$i=0;
while ($letter<'z') {
  $letter=Chr(ord($letter)+$i);
  $i++;
  print("$letter<br>\n");
}
which should work.

Bogdan

Philip Olson wrote:

> Consider this example:
>
> $letter = 'a';
> $i = 0;
> while ($i++ < 26) {
>   print "Letter: ". $letter++ ."\n";
> }




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to