Re: Letters loop

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

 



MIGUEL ANTONIO GUIRAO AGUILAR wrote:
Hi!!

I wanna a do a for loop with letters, Is this possible?

for ($i = 'A'; $i <= 'Z'; $i++){
// code
}

try it.

php -r '
for ($i = "a"; $i < "z"; $i++){ echo $i,"."; } echo "z";'



-------------------------- 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


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

  Powered by Linux