RE: [PHP-DB] Letters loop

From: Date: Thu, 26 May 2005 07:17:14 +0000
Subject: RE: [PHP-DB] Letters loop
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-39551@lists.php.net to get a copy of this message
hi Miguel > I wanna a do a for loop with letters, Is this possible? > > for ($i = 'A'; $i <= 'Z'; $i++){ > // code > } you can, but it doesn't do what you think it should do. Apparently it gets to Z, restarts with AA, AB, AC etc and continues like that until it hits YZ. feck knows why :-/ hth (a bit) Rob

« previous php.db (#39551) next »