Re: Iteration through letter
| From: | Ray Hauge | Date: | Thu, 14 Sep 2006 17:51:10 +0000 |
| Subject: | Re: Iteration through letter | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-241795@lists.php.net to get a copy of this message | ||
On Thursday 14 September 2006 12:41, Robert Cummings wrote:
> On Thu, 2006-09-14 at 19:26 +0200, Norbert Wenzel wrote:
> > Hi,
> >
> > just for fun I tried the following code:
> >
> > <code>
> > for($letter = 'A'; $letter <= 'Z'; ++$letter) {
> > echo($letter . ' ');
> > }
> > </code>
> >
> > What surprised me was the output, which looked like this:
> >
> > A B C [...] Y Z AA AB AC [...] YY YZ
> >
> > I don't have any idea how these letters get printed out, so I'd
> > appreciate any guesses or explanations.
>
> Read the manual and search the archives, this was beaten to a bloody
> pulp several months ago. (Hint: this DOESN'T work like ascii in C).
>
> Cheers,
> Rob.
I was typing up my response before yours came in... looks like I made the
spoiler ;)
Later,
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentloan.com
1.800.575.1099