Re: A very strange loop!

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

 



Xell Zhang wrote:
for ($i = 'A'; $i < 'Z'; $i++) {
echo $i . ' ';
}

Rather do it like this:

for ($i = 65; $i < 91; $i++) {
echo chr($i) . ' ';
}


--
Regards,

Clive.

Real Time Travel Connections


{No electrons were harmed in the creation, transmission or reading of
this email. However, many were excited and some may well have enjoyed
the experience.}

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux