Re: print a to z

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

 



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

wow.. that is a very nice solutions you give me chris.
thanks

On 1/15/09, Chris <dmagick@xxxxxxxxx> wrote:
> paragasu wrote:
>> i have this cute little problem. i want to print a to z for site
>> navigation
>> my first attempt work fine
>>
>> for($i = '65'; $i < '91'; ++$i)
>>   echo chr($i);
>>
>> but someone point me a more interesting solutions
>
> $letters = range('a', 'z');
> foreach ($letters as $letter) {
>    echo $letter;
> }
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
>

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