BUG?: for loop using chars

From: Date: Thu, 16 May 2002 17:27:52 +0000
Subject: BUG?: for loop using chars
Groups: php.general 
Request: Send a blank email to php-general+get-97965@lists.php.net to get a copy of this message
Hello, I'm trying to generate this list of letters A..Z, using this for ($l='A'; $l<='Z'; $l++) echo $l."-"; And it doesn't work. It generates the output included at the end of this message (I used .... to be shorter) But this works for ($l='A'; $l<='Y'; $l++) echo $l."-"; generating the expected output. IS this a bug in PHP? Any help? Please, if you can, Cc to my email: ereimber@multinet.cl TIA, Erich --- Wrong output: 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-AD-AE-AF- AG-AH-AI........-YV-YW-YX-YY-YZ-

« previous php.general (#97965) next »