Re: Letter incrementing
| From: | David Otton | Date: | Thu, 18 Mar 2004 19:15:35 +0000 |
| Subject: | Re: Letter incrementing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180889@lists.php.net to get a copy of this message | ||
On Thu, 18 Mar 2004 15:16:34 +0200, you wrote:
>But I need to do a $variable = "B";
>and then do a $variable++ that will result in
>$variable == "C"
for ($i = 0; $i < 26; $i++)
{
echo (chr($i + ord('A')));
}