From: "Paul" <[EMAIL PROTECTED]>

> <?php
> for($i='A';$i<='Z';$i++){  echo $i.' | ';  }
> ?>
>
> The output is:
> A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S
| T | U | V | W | X | Y | Z |
>  AA | AB | AC |
>  ...
>   YX | YY | YZ |
>
> where is should display only letters from A to Z.
> Why is that?

'AAAAA' is less than 'Z' when we're talking about strings. Same as '1000' is
less than '2' when compared as strings. Doesn't really answer "why", but
that's just how it is. :)

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to