Re: print a to z

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

 



This one time, at band camp, "Leon du Plessis" <leon@xxxxxxxxxx> wrote:

> I used that notation before, and it did not work 100%. 
> Adapt as follows:
> 
> for ($i = 'a'; $i <= 'z'; $i++)
>     if ($i == "aa") break; else echo $i;
> 


foreach(range('a', 'z') as $letter ) { echo $letter; }

Kevin


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