Re: Iteration through letter

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

 



On Thu, 2006-09-14 at 12:51 -0500, Ray Hauge wrote:
> 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 ;)

Doh! :)


-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

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