<snip> > Hi! > Got this script: > > <?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? > </snip>
Hi, Paul. Try this instead. $x = 65; for ($i=0; $i<26; $i++) { echo chr($x); $x++; } Set $x to 97 to get lowercase letters. HTH. Pablo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php