Re: Iteration through letter

From: Date: Thu, 14 Sep 2006 17:56:28 +0000
Subject: Re: Iteration through letter
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241798@lists.php.net to get a copy of this message
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. thanks, Norbert
Thanks for all your replies and sorry about asking a question answered in the manual. I was too surprised of the result, so I didn't even think I could find that topic in the manual. Sorry. Norbert

« previous php.general (#241798) next »