RE: [PHP-DB] Letters loop
| From: | Bastien Koert | Date: | Thu, 26 May 2005 16:26:49 +0000 |
| Subject: | RE: [PHP-DB] Letters loop | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39544@lists.php.net to get a copy of this message | ||
nope
chr ( int ascii ) takes the integer
ord ( string string ) takes the string
bastien
From: Miguel Guirao <miguel.guirao@mail.telcel.com> To: php-db@lists.php.net Subject: RE: [PHP-DB] Letters loop Date: Thu, 26 May 2005 09:22:56 -0500 Thanks!! I think the ord() function should receive an integer as a parameter and it returns it's corresponding character. But it will work!!! -----Original Message----- From: Bastien Koert [mailto:bastien_k@hotmail.com] Sent: Jueves, 26 de Mayo de 2005 08:28 a.m. To: miguel.guirao@mail.telcel.com; php-db@lists.php.net Subject: RE: [PHP-DB] Letters loop try for ($i =ord( 'A'); $i <= ord('Z'); $i++){ // code } bastien From: MIGUEL ANTONIO GUIRAO AGUILAR <miguel.guirao@mail.telcel.com> To: php-db@lists.php.net Subject: [PHP-DB] Letters loop Date: Wed, 25 May 2005 20:37:47 -0700 Hi!! I wanna a do a for loop with letters, Is this possible? for ($i = 'A'; $i <= 'Z'; $i++){ // code } -------------------------- MIGUEL GUIRAO AGUILERA Logistica R8 - Telcel Tel: (999) 960.7994 Cel: 9931-60000 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php