Re: print a to z
| From: | Kevin Waterson | Date: | Fri, 16 Jan 2009 07:34:55 +0000 |
| Subject: | Re: print a to z | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286487@lists.php.net to get a copy of this message | ||
This one time, at band camp, "Leon du Plessis" <leon@dsgnit.com> 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