RE: Letters loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux